|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WSSEncryption
This interface is responsible for the encryption component. There are the values to set as default.
WSSFactory factory = WSSFactory.getInstance(); WSSGenerationContext gencont = factory.newWSSGenerationContext(); X509GenerateCallbackHandler callbackhandler = generateCallbackHandler(); SecurityToken token = factory.newSecurityToken(X509Token.class, callbackHandler); WSSEncryption enc = factory.newWSSEncryption(token); gencont.add(enc);
WSSEncryptPart
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 an encryption part. |
static java.lang.String |
KW_AES128
The URI for the key encryption 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 encryption 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 encryption 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 encryption 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 encryption 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 encryption algorithm, key wrap triple DES: http://www.w3.org/2001/04/xmlenc#kw-tripledes. |
static int |
SIGNATURE
The keyword for the signature as a encryption part. |
static java.lang.String |
TRIPLE_DES
The URI for the data encryption algorithm, triple DES: http://www.w3.org/2001/04/xmlenc#tripledes-cbc. |
Method Summary | |
---|---|
void |
addEncryptHeader(javax.xml.namespace.QName header)
Adds the header in the SOAP Header, specified by QName, as an encrypted part. |
void |
addEncryptPart(int keyword)
Adds the keyword of the encrypted part, such as BODY_CONTENT, SIGNATURE. |
void |
addEncryptPart(SecurityToken securityToken,
boolean isElement)
Adds the security token object as an encrypted part. |
void |
addEncryptPart(WSSEncryptPart part)
Adds the WSSEncryptPart object as an encrypted part. |
void |
addEncryptPart(WSSSignature signature)
Adds the signature component as an encrypted part. |
void |
addEncryptPartByXPath(java.lang.String xpath)
Adds an XPath expression as an encrypted part. |
void |
encryptKey(boolean isEncrypt)
Call this method with true as an argument, when the shared key is encrypted. |
void |
setEncryptionMethod(java.lang.String algorithm)
Sets the data encryption method. |
void |
setKeyEncryptionMethod(java.lang.String algorithm)
Set the key encryption method. |
void |
setOptimize(boolean mtomOptimize)
Sets MTOM optimization of the encrypted part. |
void |
setTokenReference(int refType)
Sets the type of the security token reference, such as |
Field Detail |
---|
static final int BODY_CONTENT
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 addEncryptPart(int keyword) throws WSSException
keyword
- part to be encrypted
WSSException
- if the keyword is not valid.void addEncryptPart(WSSEncryptPart part)
part
- part to be encryptedvoid addEncryptPart(WSSSignature signature)
signature
- part to be encryptedvoid addEncryptHeader(javax.xml.namespace.QName header)
header
- part to be encryptedvoid addEncryptPartByXPath(java.lang.String xpath)
xpath
- encryption partvoid setEncryptionMethod(java.lang.String algorithm) throws WSSException
algorithm
- data encryption algorithm
WSSException
- the algorithm is not supportedvoid setKeyEncryptionMethod(java.lang.String algorithm) throws WSSException
algorithm
- key encryption algorithm
WSSException
- the algorithm is not supportedvoid encryptKey(boolean isEncrypt)
isEncrypt
- true, if the shared key is to be encrypted. void setTokenReference(int refType) throws WSSException
refType
- reference type of the security token
WSSException
- if the refType is not valid.void addEncryptPart(SecurityToken securityToken, boolean isElement)
securityToken
- part to be encryptedisElement
- Specifies whether the encrypted part is an element.
If set to true, the encrypted part is an element;
if set to false, the encrypted part is its content only.void setOptimize(boolean mtomOptimize)
mtomOptimize
- boolean flag indicating whether the encrypted part should be optimized for MTOM.
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |