Class SignatureConfirmation
- java.lang.Object
-
- org.apache.ws.security.message.token.SignatureConfirmation
-
public class SignatureConfirmation extends java.lang.ObjectSignature Confirmation element.- Author:
- Werner Dittmann (Werner.Dittmann@t-online.de)
-
-
Field Summary
Fields Modifier and Type Field Description protected org.w3c.dom.Elementelement
-
Constructor Summary
Constructors Constructor Description SignatureConfirmation(org.w3c.dom.Document doc, byte[] signVal)Constructs aSignatureConfirmationobject according to the defined parameters.SignatureConfirmation(org.w3c.dom.Element elem)Constructs aSignatureConfirmationobject and parses thewsse11:SignatureCOnfirmationelement to initialize it.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.ElementgetElement()Returns the dom element of thisTimestampobject.java.lang.StringgetID()Returns the value of the wsu:Id attributebyte[]getSignatureValue()voidsetID(java.lang.String id)Set wsu:Id attribute of this SignatureConfirmation element.java.lang.StringtoString()Returns the string representation of the token.
-
-
-
Constructor Detail
-
SignatureConfirmation
public SignatureConfirmation(org.w3c.dom.Element elem) throws WSSecurityExceptionConstructs aSignatureConfirmationobject and parses thewsse11:SignatureCOnfirmationelement to initialize it.- Parameters:
elem- thewsse11:SignatureCOnfirmationelement that contains the confirmation data- Throws:
WSSecurityException
-
SignatureConfirmation
public SignatureConfirmation(org.w3c.dom.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
-
getElement
public org.w3c.dom.Element getElement()
Returns the dom element of thisTimestampobject.- Returns:
- the
wsse:UsernameTokenelement
-
toString
public java.lang.String toString()
Returns the string representation of the token.- Overrides:
toStringin classjava.lang.Object- Returns:
- a XML string representation
-
setID
public void setID(java.lang.String id)
Set wsu:Id attribute of this SignatureConfirmation element.- Parameters:
id-
-
getID
public java.lang.String getID()
Returns the value of the wsu:Id attribute- Returns:
- TODO
-
getSignatureValue
public byte[] getSignatureValue()
- Returns:
- Returns the signatureValue.
-
-