Class SignatureConfirmation


  • public class SignatureConfirmation
    extends Object
    Signature Confirmation element.
    • Constructor Detail

      • SignatureConfirmation

        public SignatureConfirmation​(Element elem,
                                     BSPEnforcer bspEnforcer)
                              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
        bspEnforcer - a BSPEnforcer instance used to enforce BSP rules
        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