Class SignatureConfirmation

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

public class SignatureConfirmation extends Object
Signature Confirmation element.
Author:
Werner Dittmann (Werner.Dittmann@t-online.de)
  • Field Details

    • element

      protected Element element
  • Constructor Details

    • 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 Details

    • getElement

      public Element getElement()
      Returns the dom element of this Timestamp object.
      Returns:
      the wsse:UsernameToken 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:
      TODO
    • getSignatureValue

      public byte[] getSignatureValue()
      Returns:
      Returns the signatureValue.