org.apache.ws.security.message.token
Class SignatureConfirmation

java.lang.Object
  extended byorg.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
protected  org.w3c.dom.Element element
           
 
Constructor Summary
SignatureConfirmation(org.w3c.dom.Document doc, byte[] signVal)
          Constructs a SignatureConfirmation object according to the defined parameters.
SignatureConfirmation(org.w3c.dom.Element elem)
          Constructs a SignatureConfirmation object and parses the wsse11:SignatureCOnfirmation element to initialize it.
 
Method Summary
 org.w3c.dom.Element getElement()
          Returns the dom element of this Timestamp object.
 java.lang.String getID()
          Returns the value of the wsu:Id attribute
 byte[] 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

element

protected org.w3c.dom.Element element
Constructor Detail

SignatureConfirmation

public SignatureConfirmation(org.w3c.dom.Element elem)
                      throws WSSecurityException
Constructs a SignatureConfirmation object and parses the wsse11:SignatureCOnfirmation element to initialize it.

Parameters:
elem - the wsse11:SignatureCOnfirmation element that contains the confirmation data

SignatureConfirmation

public SignatureConfirmation(org.w3c.dom.Document doc,
                             byte[] signVal)
Constructs a SignatureConfirmation object according to the defined parameters.

Parameters:
doc - the SOAP envelope as Document
signVal - the Signature value as byte[] of null if no value available.
Method Detail

getElement

public org.w3c.dom.Element getElement()
Returns the dom element of this Timestamp object.

Returns:
the wsse:UsernameToken element

toString

public java.lang.String toString()
Returns the string representation of the token.

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.


Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.