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

      • WSSAddSAMLToken

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

        public WSSAddSAMLToken​(java.lang.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​(java.lang.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 Detail

      • build

        public org.w3c.dom.Document build​(org.w3c.dom.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