Constructs a RequestedSecurityToken
element from
an existing XML block.
try {
final JAXBContext context =
WSTrustElementFactory.getContext();
final javax.xml.bind.Unmarshaller unmarshaller = context.createUnmarshaller();
return unmarshaller.unmarshal(element, RequestedSecurityTokenType.class).getValue();
} catch (JAXBException ex) {
log.log(Level.SEVERE,
LogStringsMessages.WST_0021_ERROR_UNMARSHAL_DOM_ELEMENT(), ex);
throw new WSTrustException(LogStringsMessages.WST_0021_ERROR_UNMARSHAL_DOM_ELEMENT(), ex);
}