public interface WSSSignPart
WSSSignature
Modifier and Type | Field and Description |
---|---|
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#sha1.
|
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/2002/06/xmldsig-filter2.
|
Modifier and Type | Method and Description |
---|---|
void |
addTransform(java.lang.String algorithm)
Adds the transform method.
|
void |
addTransform(java.lang.String algorithm,
TransformParameterSpec paramSpec)
Adds transform method.
|
void |
setDigestMethod(java.lang.String algorithm)
Sets the digest method.
|
void |
setSignHeader(javax.xml.namespace.QName qname)
Sets the header in the SOAP header, specified by QName, as a signature part.
|
void |
setSignPart(int keyword)
Sets the keyword as a signature part, such as WSSSignature.BODY, WSSSignature.ADDRESSING_HEADER,
or WSSSignature.TIMESTAMP.
|
void |
setSignPart(SecurityToken securityToken)
Sets the security token as a signature part.
|
void |
setSignPart(WSSTimestamp timestamp)
Sets the time stamp as a signature part.
|
void |
setSignPartByXPath(java.lang.String xpath)
Sets an XPath expression as a signature part.
|
static final java.lang.String SHA1
static final java.lang.String SHA256
static final java.lang.String SHA512
static final java.lang.String TRANSFORM_EXC_C14N
static final java.lang.String TRANSFORM_XPATH2_FILTER
static final java.lang.String TRANSFORM_STRT10
static final java.lang.String TRANSFORM_ENVELOPED_SIGNATURE
void setSignPart(int keyword) throws WSSException
keyword
- signature partWSSException
- if the keyword is not validvoid setSignPart(SecurityToken securityToken)
securityToken
- signature partvoid setSignPart(WSSTimestamp timestamp)
timestamp
- signature partvoid setSignHeader(javax.xml.namespace.QName qname)
header
- signature partvoid setSignPartByXPath(java.lang.String xpath)
xpath
- signature partvoid setDigestMethod(java.lang.String algorithm) throws WSSException
algorithm
- digest algorithmWSSException
- the algorithm is not supportedvoid addTransform(java.lang.String algorithm, TransformParameterSpec paramSpec) throws WSSException
algorithm
- name of transform algorithmparamSpec
- specification of algorithm parametersWSSException
- the algorithm is not supportedvoid addTransform(java.lang.String algorithm) throws WSSException
algorithm
- transform algorithmWSSException
- the algorithm is not supported