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 String
SC_VALUE_ATTR
-
Constructor Summary
Constructors Constructor Description SignatureConfirmation(Document doc, byte[] signVal)
Constructs aSignatureConfirmation
object according to the defined parameters.SignatureConfirmation(Element elem, BSPEnforcer bspEnforcer)
Constructs aSignatureConfirmation
object and parses thewsse11:SignatureConfirmation
element to initialize it.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addWSUNamespace()
Add the WSU Namespace to this SC.boolean
equals(Object object)
Element
getElement()
Returns the dom element of thisSignatureConfirmation
object.String
getID()
Returns the value of the wsu:Id attributebyte[]
getSignatureValue()
int
hashCode()
void
setID(String id)
Set wsu:Id attribute of this SignatureConfirmation element.String
toString()
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 aSignatureConfirmation
object and parses thewsse11:SignatureConfirmation
element to initialize it.- Parameters:
elem
- thewsse11:SignatureCOnfirmation
element that contains the confirmation databspEnforcer
- a BSPEnforcer instance used to enforce BSP rules- Throws:
WSSecurityException
-
SignatureConfirmation
public SignatureConfirmation(Document doc, byte[] signVal)
Constructs aSignatureConfirmation
object according to the defined parameters.- Parameters:
doc
- the SOAP envelope asDocument
signVal
- the Signature value as byte[] ofnull
if 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 thisSignatureConfirmation
object.- Returns:
- the
wsse11:SignatureConfirmation
element
-
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.
-
-