public class RenewTargetImpl extends com.sun.xml.ws.security.trust.impl.bindings.RenewTargetType implements com.sun.xml.ws.security.trust.elements.RenewTarget
Target specifying the Security token to be renewed.
final JAXBElement obj = (JAXBElement)rnType.getAny();
final String local = obj.getName().getLocalPart();
if ("SecurityTokenReference".equals(local)) {
final SecurityTokenReference str =
new SecurityTokenReferenceImpl((SecurityTokenReferenceType)obj.getValue());
setSecurityTokenReference(str);
setTargetType(WSTrustConstants.STR_TYPE);
} else {
//ToDo
}