Class 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 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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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
        Throws:
        WSSecurityException
      • 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.
        Overrides:
        toString in class java.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.