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