Class SignatureConfirmation
- java.lang.Object
-
- org.apache.wss4j.dom.message.token.SignatureConfirmation
-
public class SignatureConfirmation extends Object
Signature Confirmation element.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSC_VALUE_ATTR
-
Constructor Summary
Constructors Constructor Description SignatureConfirmation(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddWSUNamespace()Add the WSU Namespace to this SC.booleanequals(Object object)ElementgetElement()Returns the dom element of thisSignatureConfirmationobject.StringgetID()Returns the value of the wsu:Id attributebyte[]getSignatureValue()inthashCode()voidsetID(String id)Set wsu:Id attribute of this SignatureConfirmation element.StringtoString()Returns the string representation of the token.
-
-
-
Field Detail
-
SC_VALUE_ATTR
public static final String SC_VALUE_ATTR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SignatureConfirmation
public SignatureConfirmation(Element elem, BSPEnforcer bspEnforcer) throws WSSecurityException
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
public SignatureConfirmation(Document doc, byte[] signVal)
Constructs aSignatureConfirmationobject according to the defined parameters.- Parameters:
doc- the SOAP envelope asDocumentsignVal- the Signature value as byte[] ofnullif no value available.
-
-
Method Detail
-
addWSUNamespace
public void addWSUNamespace()
Add the WSU Namespace to this SC. The namespace is not added by default for efficiency purposes.
-
getElement
public Element getElement()
Returns the dom element of thisSignatureConfirmationobject.- Returns:
- the
wsse11:SignatureConfirmationelement
-
toString
public String toString()
Returns the string representation of the token.
-
setID
public void setID(String id)
Set wsu:Id attribute of this SignatureConfirmation element.- Parameters:
id-
-
getID
public String getID()
Returns the value of the wsu:Id attribute- Returns:
- the WSU ID
-
getSignatureValue
public byte[] getSignatureValue()
- Returns:
- Returns the signatureValue.
-
-