Class WSSAddSAMLToken

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

public class WSSAddSAMLToken extends WSBaseMessage
Builds a WS SAML Assertion and inserts it into the SOAP Envelope. Refer to the WS specification, SAML Token profile
Author:
Davanum Srinivas (dims@yahoo.com).
  • Constructor Details

    • WSSAddSAMLToken

      public WSSAddSAMLToken()
      Deprecated.
      replaced by WSSecSAMLToken()
      Constructor.
    • WSSAddSAMLToken

      public WSSAddSAMLToken(String actor)
      Deprecated.
      replaced by WSSecSAMLToken() and WSSecHeader for actor specification.
      Constructor.

      Parameters:
      actor - the name of the actor of the wsse:Security header
    • WSSAddSAMLToken

      public WSSAddSAMLToken(String actor, boolean mu)
      Deprecated.
      replaced by WSSecSAMLToken() 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, org.opensaml.SAMLAssertion assertion)
      Adds a new SAMLAssertion to a soap envelope.

      A complete SAMLAssertion is added to the wsse:Security header.

      Parameters:
      doc - The SOAP enevlope as W3C document
      assertion - TODO
      Returns:
      Document with UsernameToken added