public class CancelTargetImpl extends com.sun.xml.ws.security.trust.impl.bindings.CancelTargetType implements com.sun.xml.ws.security.trust.elements.CancelTarget
Defines Binding for requesting security tokens to be cancelled.
final JAXBElement obj = (JAXBElement)ctType.getAny();
final String local = obj.getName().getLocalPart();
if ("SecurityTokenReference".equals(local)) {
final SecurityTokenReference str =
new SecurityTokenReferenceImpl((SecurityTokenReferenceType)obj.getValue());
setSecurityTokenReference(str);
setTargetType(CancelTarget.STR_TARGET_TYPE);
} else {
//ToDo
}