try {
Element domChild = (Element) new StAXOMBuilder(
DOOMAbstractFactory.getOMFactory(), child
.getXMLStreamReader()).getDocumentElement();
EncryptedKeyProcessor processor = new EncryptedKeyProcessor();
processor.handleToken(domChild, null, this.crypto,
this.cbHandler, null, new Vector(),
null);
secret = processor.getDecryptedBytes();
} catch (WSSecurityException e) {
throw new TrustException("errorInProcessingEncryptedKey", e);
}
} else if (child.getQName().equals(new QName(ns,
RahasConstants.IssuanceBindingLocalNames.