IBM WebSphere Application ServerTM
Release 7

com.ibm.websphere.wssecurity.wssapi.verification
Interface WSSVerifyPart


public interface WSSVerifyPart

This interface is responsible for one verified part.
The following values are the default values for WSSSignature interface:

See Also:
WSSVerification

Field Summary
static java.lang.String SHA1
          The URI for the digest algorithm, SHA1: http://www.w3.org/2000/09/xmldsig#sha1.
static java.lang.String SHA256
          The URI for the digest algorithm, SHA256: http://www.w3.org/2001/04/xmlenc#sha256,
static java.lang.String SHA512
          The URI for the digest algorithm, SHA512: http://www.w3.org/2001/04/xmlenc#sha512,
static java.lang.String TRANSFORM_ENVELOPED_SIGNATURE
          The URI for the transform algorithm, enveloped signature: http://www.w3.org/2000/09/xmldsig#enveloped-signature.
static java.lang.String TRANSFORM_EXC_C14N
          The URI for the transform algorithm, Exc-C14N: http://www.w3.org/2001/10/xml-exc-c14n#,
static 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.
static java.lang.String TRANSFORM_XPATH2_FILTER
          The URI for the transform algorithm, XPath2 filter: http://www.w3.org/TR/xmldsig-filter2/.
 
Method Summary
 void addAllowedDigestMethod(java.lang.String algorithm)
          Adds the digest method.
 void addAllowedTransform(java.lang.String algorithm)
          Adds the transform method.
 void setRequiredVerifyHeader(javax.xml.namespace.QName qname)
          Sets the header in the SOAP Header, specified by QName, as a verification part.
 void setRequiredVerifyPart(int keyword)
          Sets the keyword as a verification part such as WSSVerification.BODY, WSSVerification.ADDRESSING_HEADERS, or WSSVerification.TIMESTAMP
 void setRequiredVerifyPartByXPath(java.lang.String xpath)
          Set an XPath expression as a verification part.
 

Field Detail

SHA1

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

See Also:
Constant Field Values

SHA256

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

See Also:
Constant Field Values

SHA512

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

See Also:
Constant Field Values

TRANSFORM_EXC_C14N

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:
Constant Field Values

TRANSFORM_XPATH2_FILTER

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

See Also:
Constant Field Values

TRANSFORM_STRT10

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:
Constant Field Values

TRANSFORM_ENVELOPED_SIGNATURE

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

See Also:
Constant Field Values
Method Detail

setRequiredVerifyPart

void setRequiredVerifyPart(int keyword)
                           throws WSSException
Sets the keyword as a verification part such as WSSVerification.BODY, WSSVerification.ADDRESSING_HEADERS, or WSSVerification.TIMESTAMP

Parameters:
keyword - verification part
Throws:
WSSException - if the keyword is not valid.

setRequiredVerifyHeader

void setRequiredVerifyHeader(javax.xml.namespace.QName qname)
Sets the header in the SOAP Header, specified by QName, as a verification part.

Parameters:
header - verification part

setRequiredVerifyPartByXPath

void setRequiredVerifyPartByXPath(java.lang.String xpath)
Set an XPath expression as a verification part.

Parameters:
xpath - verification part

addAllowedDigestMethod

void addAllowedDigestMethod(java.lang.String algorithm)
                            throws WSSException
Adds the digest method.

Parameters:
algorithm - digest method
Throws:
WSSException - the algorithm is not supported

addAllowedTransform

void addAllowedTransform(java.lang.String algorithm)
                         throws WSSException
Adds the transform method.

Parameters:
algorithm - transform method
Throws:
WSSException - the algorithm is not supported

IBM WebSphere Application ServerTM
Release 7