Constructor and Description |
---|
ReferenceListProcessor() |
Modifier and Type | Method and Description |
---|---|
static WSDataRef |
decryptEncryptedData(org.w3c.dom.Document doc,
String dataRefURI,
org.w3c.dom.Element encData,
javax.crypto.SecretKey symmetricKey,
String symEncAlgo)
Decrypt the EncryptedData argument using a SecretKey.
|
static org.w3c.dom.Element |
findEncryptedDataElement(org.w3c.dom.Document doc,
String dataRefURI)
Look up the encrypted data.
|
String |
getId()
Get the Id of the processor.
|
static String |
getXPath(org.w3c.dom.Node decryptedNode) |
void |
handleToken(org.w3c.dom.Element elem,
Crypto crypto,
Crypto decCrypto,
javax.security.auth.callback.CallbackHandler cb,
WSDocInfo wdi,
Vector returnResults,
WSSConfig wsc) |
public void handleToken(org.w3c.dom.Element elem, Crypto crypto, Crypto decCrypto, javax.security.auth.callback.CallbackHandler cb, WSDocInfo wdi, Vector returnResults, WSSConfig wsc) throws WSSecurityException
handleToken
in interface Processor
WSSecurityException
public static org.w3c.dom.Element findEncryptedDataElement(org.w3c.dom.Document doc, String dataRefURI) throws WSSecurityException
doc
- The document in which to find EncryptedDatadataRefURI
- The URI of EncryptedDataWSSecurityException
- if the EncryptedData element referenced by dataRefURI is
not foundpublic static WSDataRef decryptEncryptedData(org.w3c.dom.Document doc, String dataRefURI, org.w3c.dom.Element encData, javax.crypto.SecretKey symmetricKey, String symEncAlgo) throws WSSecurityException
doc
- The (document) owner of EncryptedDatadataRefURI
- The URI of EncryptedDataencData
- The EncryptedData elementsymmetricKey
- The SecretKey with which to decrypt EncryptedDatasymEncAlgo
- The symmetric encryption algorithm to useWSSecurityException
public String getId()
Processor
public static String getXPath(org.w3c.dom.Node decryptedNode)
decryptedNode
- the decrypted nodenull
otherwiseCopyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.