Class SignatureConfirmation
java.lang.Object
org.apache.wss4j.dom.message.token.SignatureConfirmation
Signature Confirmation element.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSignatureConfirmation(Document doc, byte[] signVal) Constructs aSignatureConfirmationobject according to the defined parameters.SignatureConfirmation(Element elem, BSPEnforcer bspEnforcer) Constructs aSignatureConfirmationobject and parses thewsse11:SignatureConfirmationelement to initialize it. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the WSU Namespace to this SC.booleanReturns the dom element of thisSignatureConfirmationobject.getID()Returns the value of the wsu:Id attributebyte[]inthashCode()voidSet wsu:Id attribute of this SignatureConfirmation element.toString()Returns the string representation of the token.
-
Field Details
-
SC_VALUE_ATTR
- See Also:
-
-
Constructor Details
-
SignatureConfirmation
Constructs aSignatureConfirmationobject and parses thewsse11:SignatureConfirmationelement to initialize it.- Parameters:
elem- thewsse11:SignatureCOnfirmationelement that contains the confirmation databspEnforcer- a BSPEnforcer instance used to enforce BSP rules- Throws:
WSSecurityException
-
SignatureConfirmation
Constructs aSignatureConfirmationobject according to the defined parameters.- Parameters:
doc- the SOAP envelope asDocumentsignVal- the Signature value as byte[] ofnullif no value available.
-
-
Method Details
-
addWSUNamespace
public void addWSUNamespace()Add the WSU Namespace to this SC. The namespace is not added by default for efficiency purposes. -
getElement
Returns the dom element of thisSignatureConfirmationobject.- Returns:
- the
wsse11:SignatureConfirmationelement
-
toString
Returns the string representation of the token. -
setID
Set wsu:Id attribute of this SignatureConfirmation element.- Parameters:
id-
-
getID
Returns the value of the wsu:Id attribute- Returns:
- the WSU ID
-
getSignatureValue
public byte[] getSignatureValue()- Returns:
- Returns the signatureValue.
-
hashCode
public int hashCode() -
equals
-