org.apache.ws.security.processor
Class EncryptedKeyProcessor
java.lang.Object
org.apache.ws.security.processor.EncryptedKeyProcessor
- All Implemented Interfaces:
- Processor
public class EncryptedKeyProcessor
- extends java.lang.Object
- implements Processor
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)
|
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
- Specified by:
handleToken
in interface Processor
- 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.
- Specified by:
getId
in interface Processor
- 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()
Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.