OMElement elem = rpt.getFirstElement();
if (WSConstants.ENC_KEY_LN.equals(elem.getLocalName())
&& WSConstants.ENC_NS.equals(elem.getNamespace().getNamespaceURI())) {
// Handle the xenc:EncryptedKey case
EncryptedKeyProcessor processor = new EncryptedKeyProcessor();
processor.handleToken((Element) elem, null, Util
.getCryptoInstace(config),
getCallbackHandlerInstance(config), null, new Vector(),
null);
secret = processor.getDecryptedBytes();
} else if (RahasConstants.LocalNames.BINARY_SECRET.equals(elem.getLocalName()) &&
RahasConstants.WST_NS_05_02.equals(elem.getNamespace().getNamespaceURI()))
{
// Handle the wst:BinarySecret case
secret = Base64.decode(elem.getText());