com.ibm.websphere.wssecurity.wssapi.signature

Interface WSSSignPart


  1. public interface WSSSignPart
This interface is responsible for a signature part.
The following values are the default values for WSSSignature interface:
See Also:
WSSSignature

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
SHA1
The URI for the digest algorithm, SHA1: http://www.w3.org/2000/09/xmldsig#sha1.
  1. static
  2. java.lang.String
SHA256
The URI for the digest algorithm, SHA256: http://www.w3.org/2001/04/xmlenc#sha256.
  1. static
  2. java.lang.String
SHA512
The URI for the digest algorithm, SHA512: http://www.w3.org/2001/04/xmlenc#sha512.
  1. static
  2. java.lang.String
TRANSFORM_ENVELOPED_SIGNATURE
The URI for the transform algorithm, enveloped signature: http://www.w3.org/2000/09/xmldsig#sha1.
  1. static
  2. java.lang.String
TRANSFORM_EXC_C14N
The URI for the transform algorithm, Exc-C14N: http://www.w3.org/2001/10/xml-exc-c14n#.
  1. static
  2. java.lang.String
TRANSFORM_STRT10
The URI for the transform algorithm, STR-Transform: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#STR-Transform.
  1. static
  2. java.lang.String
TRANSFORM_XPATH2_FILTER
The URI for the transform algorithm, XPath2 filter: http://www.w3.org/2002/06/xmldsig-filter2.

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 transform method.
  1. void
setDigestMethod(java.lang.String algorithm)
Sets the digest method.
  1. void
setSignHeader(javax.xml.namespace.QName qname)
Sets the header in the SOAP header, specified by QName, as a signature part.
  1. void
setSignPart(int keyword)
Sets the keyword as a signature part, such as WSSSignature.BODY, WSSSignature.ADDRESSING_HEADER, or WSSSignature.TIMESTAMP.
  1. void
setSignPart(SecurityToken securityToken)
Sets the security token as a signature part.
  1. void
setSignPart(WSSTimestamp timestamp)
Sets the time stamp as a signature part.
  1. void
setSignPartByXPath(java.lang.String xpath)
Sets an XPath expression as a signature part.

Field Detail

SHA1

  1. static final java.lang.String SHA1
The URI for the digest algorithm, SHA1: http://www.w3.org/2000/09/xmldsig#sha1.
See Also:

SHA256

  1. static final java.lang.String SHA256
The URI for the digest algorithm, SHA256: http://www.w3.org/2001/04/xmlenc#sha256.
See Also:

SHA512

  1. static final java.lang.String SHA512
The URI for the digest algorithm, SHA512: http://www.w3.org/2001/04/xmlenc#sha512.
See Also:

TRANSFORM_EXC_C14N

  1. static final java.lang.String TRANSFORM_EXC_C14N
The URI for the transform algorithm, Exc-C14N: http://www.w3.org/2001/10/xml-exc-c14n#.
See Also:

TRANSFORM_XPATH2_FILTER

  1. static final java.lang.String TRANSFORM_XPATH2_FILTER
The URI for the transform algorithm, XPath2 filter: http://www.w3.org/2002/06/xmldsig-filter2.
See Also:

TRANSFORM_STRT10

  1. static final java.lang.String TRANSFORM_STRT10
The URI for the transform algorithm, STR-Transform: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#STR-Transform.
See Also:

TRANSFORM_ENVELOPED_SIGNATURE

  1. static final java.lang.String TRANSFORM_ENVELOPED_SIGNATURE
The URI for the transform algorithm, enveloped signature: http://www.w3.org/2000/09/xmldsig#sha1.
See Also:

Method Detail

setSignPart

  1. void setSignPart(int keyword)
  2. throws WSSException
Sets the keyword as a signature part, such as WSSSignature.BODY, WSSSignature.ADDRESSING_HEADER, or WSSSignature.TIMESTAMP.
Parameters:
keyword - signature part
Throws:
WSSException - if the keyword is not valid

setSignPart

  1. void setSignPart(SecurityToken securityToken)
Sets the security token as a signature part.
Parameters:
securityToken - signature part

setSignPart

  1. void setSignPart(WSSTimestamp timestamp)
Sets the time stamp as a signature part.
Parameters:
timestamp - signature part

setSignHeader

  1. void setSignHeader(javax.xml.namespace.QName qname)
Sets the header in the SOAP header, specified by QName, as a signature part.

setSignPartByXPath

  1. void setSignPartByXPath(java.lang.String xpath)
Sets an XPath expression as a signature part.
Parameters:
xpath - signature part

setDigestMethod

  1. void setDigestMethod(java.lang.String algorithm)
  2. throws WSSException
Sets the digest method.
Parameters:
algorithm - digest algorithm
Throws:
WSSException - the algorithm is not supported

addTransform

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

addTransform

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