Class WSAddSignatureConfirmation

java.lang.Object
org.apache.ws.security.message.WSBaseMessage
org.apache.ws.security.message.WSAddSignatureConfirmation

public class WSAddSignatureConfirmation extends WSBaseMessage
Builds a WS SignatureConfirmation and inserts it into the SOAP Envelope.
Author:
Werner Dittmann (Werner.Dittmann@t-online.de).
  • Constructor Details

    • WSAddSignatureConfirmation

      public WSAddSignatureConfirmation()
      Deprecated.
      Constructor.
    • WSAddSignatureConfirmation

      public WSAddSignatureConfirmation(String actor)
      Deprecated.
      replaced by WSSecSignatureConfirmation() and WSSecHeader for actor specification.
      Constructor.
      Parameters:
      actor - the name of the actor of the wsse:Security header
    • WSAddSignatureConfirmation

      public WSAddSignatureConfirmation(String actor, boolean mu)
      Deprecated.
      replaced by WSSecSignatureConfirmation() and WSSecHeader for actor and mustunderstand specification.
      Constructor.
      Parameters:
      actor - The name of the actor of the wsse:Security header
      mu - Set mustUnderstand to true or false
  • Method Details

    • build

      public Document build(Document doc, byte[] sigVal)
      Adds a new SignatureConfirmation to a soap envelope. A complete SignatureConfirmation is constructed and added to the wsse:Security header.
      Parameters:
      doc - The SOAP enevlope as W3C document
      sigVal - the Signature value. This will be the content of the "Value" attribute.
      Returns:
      Document with SignatureConfirmation added
    • setId

      public void setId(String id)
      Deprecated.
      no replacement, id is created by default in WSSecSignatureConfirmation
      Set the wsu:Id value of the SignatureConfirmation
      Parameters:
      id -
    • getId

      public String getId()
      Deprecated.
      Get the wsu:Id value of the SignatureConfirmation
      Returns:
      Returns the wsu:id value