org.apache.ws.security.processor
Class EncryptedKeyProcessor
java.lang.Object
org.apache.ws.security.processor.ProcessorBase
org.apache.ws.security.processor.EncryptedKeyProcessor
- All Implemented Interfaces:
- Processor
- public class EncryptedKeyProcessor
- extends org.apache.ws.security.processor.ProcessorBase
|
Method Summary |
static byte[] |
getDecodedBase64EncodedData(org.w3c.dom.Element element)
Method getDecodedBase64EncodedData |
byte[] |
getDecryptedBytes()
Get the decrypted key. |
byte[] |
getEncryptedEphemeralKey()
|
java.lang.String |
getId()
Get the Id of the encrypted key element. |
java.util.ArrayList |
handleEncryptedKey(org.w3c.dom.Element xencEncryptedKey,
javax.security.auth.callback.CallbackHandler cb,
Crypto crypto)
|
java.util.ArrayList |
handleEncryptedKey(org.w3c.dom.Element xencEncryptedKey,
javax.security.auth.callback.CallbackHandler cb,
Crypto crypto,
java.security.PrivateKey privateKey)
|
java.util.ArrayList |
handleEncryptedKey(org.w3c.dom.Element xencEncryptedKey,
java.security.PrivateKey privatekey)
|
void |
handleToken(org.w3c.dom.Element elem,
Crypto crypto,
Crypto decCrypto,
javax.security.auth.callback.CallbackHandler cb,
WSDocInfo wsDocInfo,
java.util.Vector returnResults,
WSSConfig wsc)
|
protected static java.util.List |
listChildren(org.w3c.dom.Node parent)
|
protected static java.util.List |
newNodes(java.util.List a,
java.util.List b)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EncryptedKeyProcessor
public EncryptedKeyProcessor()
handleToken
public void handleToken(org.w3c.dom.Element elem,
Crypto crypto,
Crypto decCrypto,
javax.security.auth.callback.CallbackHandler cb,
WSDocInfo wsDocInfo,
java.util.Vector returnResults,
WSSConfig wsc)
throws WSSecurityException
- Throws:
WSSecurityException
handleEncryptedKey
public java.util.ArrayList handleEncryptedKey(org.w3c.dom.Element xencEncryptedKey,
javax.security.auth.callback.CallbackHandler cb,
Crypto crypto)
throws WSSecurityException
- Throws:
WSSecurityException
handleEncryptedKey
public java.util.ArrayList handleEncryptedKey(org.w3c.dom.Element xencEncryptedKey,
java.security.PrivateKey privatekey)
throws WSSecurityException
- Throws:
WSSecurityException
handleEncryptedKey
public java.util.ArrayList handleEncryptedKey(org.w3c.dom.Element xencEncryptedKey,
javax.security.auth.callback.CallbackHandler cb,
Crypto crypto,
java.security.PrivateKey privateKey)
throws WSSecurityException
- Throws:
WSSecurityException
getDecodedBase64EncodedData
public static byte[] getDecodedBase64EncodedData(org.w3c.dom.Element element)
throws WSSecurityException
- Method getDecodedBase64EncodedData
- Parameters:
element -
- Returns:
- a byte array containing the decoded data
- Throws:
WSSecurityException
getId
public java.lang.String getId()
- Get the Id of the encrypted key element.
- Returns:
- The Id string
getDecryptedBytes
public byte[] getDecryptedBytes()
- Get the decrypted key.
The encrypted key element contains an encrypted session key. The
security functions use the session key to encrypt contents of the message
with symmetrical encryption methods.
- Returns:
- The decrypted key.
getEncryptedEphemeralKey
public byte[] getEncryptedEphemeralKey()
listChildren
protected static java.util.List listChildren(org.w3c.dom.Node parent)
- Returns:
- the list of children of the supplied parent node.
This operation is guaranteed to return a non-null
(though possibly empty) list.
newNodes
protected static java.util.List newNodes(java.util.List a,
java.util.List b)
- Returns:
- a list of Nodes in b that are not in a (b - a)
Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.