com.ibm.websphere.wssecurity.wssapi.encryption

Interface WSSEncryptPart


  1. public interface WSSEncryptPart
This interface is responsible for specifing encrypted parts. There is the value to set as default.
See Also:
WSSEncryption

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
TRANSFORM_ATTACHMENT_CIPHERTEXT
The URI for the transform algorithm, attachment ciphertext: "http://docs.oasis-open.org/wss/oasis-wss-SwAProfile-1.1#Attachment-Ciphertext-Transform.

Method Summary

Modifier and Type Method and Description
  1. void
addTransform(java.lang.String algorithm)
Adds the transform method.
  1. void
addTransform(java.lang.String algorithm,TransformParameterSpec paramSpec)
Adds the transform method.
  1. void
setEncryptHeader(javax.xml.namespace.QName header)
Sets the header in the SOAP Header, specified by QName, as an encrypted part.
  1. void
setEncryptPart(int keyword)
Sets the keyword as an encrypted part, WSSEncryption.BODY_CONTENT or WSSEncryption.SIGNATURE.
  1. void
setEncryptPart(SecurityToken securityToken,boolean isElement)
Sets the security token as an encryption part.
  1. void
setEncryptPart(WSSSignature signature)
Sets the WSSSignature object as an encrypted part.
  1. void
setEncryptPartByXPath(java.lang.String xpath)
Sets an XPath expression as an encrypted part.

Field Detail

TRANSFORM_ATTACHMENT_CIPHERTEXT

  1. static final java.lang.String TRANSFORM_ATTACHMENT_CIPHERTEXT
The URI for the transform algorithm, attachment ciphertext: "http://docs.oasis-open.org/wss/oasis-wss-SwAProfile-1.1#Attachment-Ciphertext-Transform.
See Also:

Method Detail

setEncryptPart

  1. void setEncryptPart(int keyword)
  2. throws WSSException
Sets the keyword as an encrypted part, WSSEncryption.BODY_CONTENT or WSSEncryption.SIGNATURE.
Parameters:
keyword - part to be encrypted
Throws:
WSSException - if the keyword is not valid.

setEncryptPart

  1. void setEncryptPart(WSSSignature signature)
Sets the WSSSignature object as an encrypted part.
Parameters:
signature - part to be encrypted

setEncryptHeader

  1. void setEncryptHeader(javax.xml.namespace.QName header)
Sets the header in the SOAP Header, specified by QName, as an encrypted part.
Parameters:
header - part to be encrypted

setEncryptPartByXPath

  1. void setEncryptPartByXPath(java.lang.String xpath)
Sets an XPath expression as an encrypted part.
Parameters:
xpath - part to be encrypted

addTransform

  1. void addTransform(java.lang.String algorithm,
  2. TransformParameterSpec paramSpec)
  3. throws WSSException
Adds the transform method.
Parameters:
algorithm - transform algorithm
paramSpec - specification of algorithm parameters
Throws:

addTransform

  1. void addTransform(java.lang.String algorithm)
  2. throws WSSException
Adds the transform method.
Parameters:
algorithm - transform algorithm
Throws:
WSSException - if the algorithm is not supported

setEncryptPart

  1. void setEncryptPart(SecurityToken securityToken,
  2. boolean isElement)
Sets the security token as an encryption part.
Parameters:
securityToken - part to be encrypted
isElement - 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.