|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WSSDecryption
This interface is responsible for the decryption component. There are the values to set as default.
WSSFactory factory = WSSFactory.getInstance(); WSSConsumingContext concont = factory.newWSSConsumingContext(); X509ConsumeCallbackHandler callbackhandler = generateCallbackHandler(); // see X509ConsumeCallbackHandler WSSDecryption dec = factory.newWSSDecryption(X509Token.class, callbackhandler); concont.add(dec);
WSSDecryptPart
Field Summary | |
---|---|
static java.lang.String |
AES128
The URI for the data encryption algorithm, AES 128: http://www.w3.org/2001/04/xmlenc#aes128-cbc. |
static java.lang.String |
AES192
The URI for the data encryption algorithm, AES 192: http://www.w3.org/2001/04/xmlenc#aes192-cbc. |
static java.lang.String |
AES256
The URI for the data encryption algorithm, AES 256: http://www.w3.org/2001/04/xmlenc#aes256-cbc. |
static int |
BODY_CONTENT
The keyword for the body content of the SOAP message as a decrypt target. |
static java.lang.String |
KW_AES128
The URI for the key wrap algorithm, key wrap AES 128: http://www.w3.org/2001/04/xmlenc#kw-aes128. |
static java.lang.String |
KW_AES192
The URI for the key wrap algorithm, key wrap AES 192: http://www.w3.org/2001/04/xmlenc#kw-aes192. |
static java.lang.String |
KW_AES256
The URI for the key wrap algorithm, key wrap AES 256: http://www.w3.org/2001/04/xmlenc#kw-aes256. |
static java.lang.String |
KW_RSA_OAEP
The URI for the key wrap algorithm, key wrap RSA-OAEP: http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p. |
static java.lang.String |
KW_RSA15
The URI for the key wrap algorithm, key wrap RSA 1.5 : http://www.w3.org/2001/04/xmlenc#rsa-1_5. |
static java.lang.String |
KW_TRIPLE_DES
The URI for the key wrap algorithm, key wrap triple DES: http://www.w3.org/2001/04/xmlenc#kw-tripledes. |
static int |
SIGNATURE
The keyword for the signature element as a decrypt target. |
static java.lang.String |
TRIPLE_DES
The URI for the data encryption algorithm, triple DES: http://www.w3.org/2001/04/xmlenc#tripledes-cbc. |
static int |
USERNAME_TOKEN
The keyword for the user name token element as a decrypt target. |
Method Summary | |
---|---|
void |
addAllowedEncryptionMethod(java.lang.String algorithm)
Adds the data encryption method to decrypted data. |
void |
addAllowedKeyEncryptionMethod(java.lang.String algorithm)
Adds the key encryption method to decrypt the shared key. |
void |
addRequiredDecryptHeader(javax.xml.namespace.QName header)
Adds the header in the SOAP Header, specified by QName, as a decrypted part. |
void |
addRequiredDecryptPart(int keyword)
Adds the keyword of decrypted part, such as BODY_CONTENT, USERNAME_TOKEN, or SIGNATURE. |
void |
addRequiredDecryptPart(WSSDecryptPart part)
Adds the WSSDecryptPart object as a decrypted part. |
void |
addRequiredDecryptPart(WSSVerification verification)
Adds the WSSVerification object as a decrypted part. |
void |
addRequiredDecryptPartByXPath(java.lang.String xpath)
Adds an XPath expression as a decrypted part. |
void |
addToken(java.lang.Class tokenClass,
javax.security.auth.callback.CallbackHandler callbackHandler)
Adds the information of the candidate token used to decrypt. |
void |
addToken(java.lang.Class tokenClass,
javax.security.auth.callback.CallbackHandler callbackHandler,
java.lang.String loginConfigName)
Adds the information of the candidate token that is used for the decryption. |
void |
encryptKey(boolean isEncrypt)
Call this method with true as an argument, when the shared key is encrypted. |
Field Detail |
---|
static final int BODY_CONTENT
static final int USERNAME_TOKEN
static final int SIGNATURE
static final java.lang.String TRIPLE_DES
static final java.lang.String AES128
static final java.lang.String AES192
static final java.lang.String AES256
static final java.lang.String KW_TRIPLE_DES
static final java.lang.String KW_AES128
static final java.lang.String KW_AES192
static final java.lang.String KW_AES256
static final java.lang.String KW_RSA15
static final java.lang.String KW_RSA_OAEP
Method Detail |
---|
void addRequiredDecryptPart(int keyword) throws WSSException
keyword
- part to be decrypted
WSSException
- if the keyword is not valid.void addRequiredDecryptPart(WSSDecryptPart part)
part
- part to be decryptedvoid addRequiredDecryptPart(WSSVerification verification)
verification
- part to be decryptedvoid addRequiredDecryptHeader(javax.xml.namespace.QName header)
header
- part to be decryptedvoid addRequiredDecryptPartByXPath(java.lang.String xpath)
xpath
- part to be decryptedvoid addAllowedEncryptionMethod(java.lang.String algorithm) throws WSSException
algorithm
- data encryption method
WSSException
- the algorithm is not supported.void addAllowedKeyEncryptionMethod(java.lang.String algorithm) throws WSSException
algorithm
- key encryption method
WSSException
- the algorithm is not supported.void encryptKey(boolean isEncrypt)
isEncrypt
- true if the shared key which is encrypted is required. void addToken(java.lang.Class tokenClass, javax.security.auth.callback.CallbackHandler callbackHandler, java.lang.String loginConfigName) throws WSSException
tokenClass
- class of the security tokencallbackHandler
- callback handlerloginConfigName
- name of the JAAS login module
WSSException
- if the arguments are not valid.void addToken(java.lang.Class tokenClass, javax.security.auth.callback.CallbackHandler callbackHandler) throws WSSException
tokenClass
- class of the security tokencallbackHandler
- callback handler
WSSException
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |