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

java.lang.Object
  extended by org.apache.ws.security.message.token.SignatureConfirmation

public class SignatureConfirmation
extends Object

Signature Confirmation element.

Author:
Werner Dittmann (Werner.Dittmann@t-online.de)

Field Summary
protected  Element element
           
static String SC_VALUE_ATTR
           
 
Constructor Summary
SignatureConfirmation(Document doc, byte[] signVal)
          Constructs a SignatureConfirmation object according to the defined parameters.
SignatureConfirmation(Element elem)
          Constructs a SignatureConfirmation object and parses the wsse11:SignatureConfirmation element to initialize it.
 
Method Summary
 void addWSUNamespace()
          Add the WSU Namespace to this SC.
 boolean equals(Object object)
           
 Element getElement()
          Returns the dom element of this SignatureConfirmation object.
 String getID()
          Returns the value of the wsu:Id attribute
 byte[] getSignatureValue()
           
 int hashCode()
           
 void setID(String id)
          Set wsu:Id attribute of this SignatureConfirmation element.
 String toString()
          Returns the string representation of the token.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SC_VALUE_ATTR

public static final String SC_VALUE_ATTR
See Also:
Constant Field Values

element

protected Element element
Constructor Detail

SignatureConfirmation

public SignatureConfirmation(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
Throws:
WSSecurityException

SignatureConfirmation

public SignatureConfirmation(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

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 this SignatureConfirmation object.

Returns:
the wsse11:SignatureConfirmation element

toString

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

Overrides:
toString in class Object
Returns:
a XML string representation

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.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object object)
Overrides:
equals in class Object


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