Class FSAssertion


  • @Deprecated
    public class FSAssertion
    extends Assertion
    Deprecated.
    since 12.0.0
    The class FSAssertion creates and parses Liberty Assertion during the Single Sign-On process. This class extends from SAML Assertion.
    • Field Detail

      • id

        protected String id
        Deprecated.
        The value of the id attribute in the Assertion.
      • minorVersion

        protected int minorVersion
        Deprecated.
        The value of the MinorVersion attribute in the Assertion.
      • inResponseTo

        protected String inResponseTo
        Deprecated.
        The value of the InResponseTo attribute in the Assertion.
    • Constructor Detail

      • FSAssertion

        public FSAssertion​(Element assertionElement)
                    throws FSMsgException,
                           SAMLException
        Deprecated.
        Constructor to create an FSAssertion object from the Document Element.
        Parameters:
        assertionElement - the Assertion Document Element.
        Throws:
        FSMsgException - if the document element is null or cannot be retrieved.
        SAMLException - if the SAML Assertion version is incorrect
      • FSAssertion

        public FSAssertion​(String assertionID,
                           String issuer,
                           Date issueInstant,
                           Set statements,
                           String inResponseTo)
                    throws FSMsgException,
                           SAMLException
        Deprecated.
        Constructor to create FSAssertion object.
        Parameters:
        assertionID - the AssertionID element.
        issuer - the Issuer element.
        issueInstant - the IssueInstant element.
        statements - the Statement elements. List of statements that need to be added in assertion.
        inResponseTo - value of InResponseTo attribute in the assertion.
        Throws:
        FSMsgException - if the document element is null or cannot be retrieved.
        SAMLException - if the SAML Assertion version is incorrect.
      • FSAssertion

        public FSAssertion​(String assertionID,
                           String issuer,
                           Date issueInstant,
                           Conditions conditions,
                           Set statements,
                           String inResponseTo)
                    throws FSMsgException,
                           SAMLException
        Deprecated.
        Constructor to create FSAssertion object.
        Parameters:
        assertionID - the AssertionID element.
        issuer - the Issuer element.
        issueInstant - the IssueInstant element.
        conditions - the Conditions object.
        statements - the Statement elements. List of statements that need to be added in assertion.
        inResponseTo - value of InResponseTo attribute in the assertion.
        Throws:
        FSMsgException - if the document element is null or cannot be retrieved.
        SAMLException - if the SAML Assertion version is incorrect.
      • FSAssertion

        public FSAssertion​(String assertionID,
                           String issuer,
                           Date issueInstant,
                           Conditions conditions,
                           Advice advice,
                           Set statements,
                           String inResponseTo)
                    throws FSMsgException,
                           SAMLException
        Deprecated.
        Constructor to create an FSAssertion object.
        Parameters:
        assertionID - the AssertionID element.
        issuer - the Issuer element.
        issueInstant - the IssueInstant element.
        conditions - the Conditions object.
        advice - the Advice object.
        statements - the Statement elements. List of statements that need to be added in assertion.
        inResponseTo - value of InResponseTo attribute in the assertion.
        Throws:
        FSMsgException - if the document element is null or cannot be retrieved.
        SAMLException - if the SAML Assertion version is incorrect.
    • Method Detail

      • getID

        public String getID()
        Deprecated.
        Returns value of id attribute.
        Returns:
        value of id attribute.
        See Also:
        setID(String)
      • setID

        public void setID​(String id)
        Deprecated.
        Sets value of id attribute.
        Parameters:
        id - value of id attribute.
        See Also:
        getID()
      • setMinorVersion

        public void setMinorVersion​(int version)
        Deprecated.
        Sets the MinorVersion attribute.
        Overrides:
        setMinorVersion in class AssertionBase
        Parameters:
        version - the MinorVersion attribute.
        See Also:
        getMinorVersion()
      • getDOMElement

        public Element getDOMElement()
        Deprecated.
        Returns the Document Element for this object.
        Returns:
        the Document Element for this object.
      • getInResponseTo

        public String getInResponseTo()
        Deprecated.
        Returns the value of InResponseTo attribute.
        Returns:
        the value of InResponseTo attribute.
        See Also:
        setInResponseTo(String)
      • setInResponseTo

        public void setInResponseTo​(String inResponseTo)
        Deprecated.
        Sets the value of InResponseTo attribute.
        Parameters:
        inResponseTo - value of InResponseTo attribute.
        See Also:
        getInResponseTo()
      • getSignedXMLString

        public String getSignedXMLString()
        Deprecated.
        Returns Signed XML String.
        Returns:
        Signed XML String.
      • getSignatureString

        public String getSignatureString()
        Deprecated.
        Returns the Signature string.
        Returns:
        the Signature string.
      • isTimeValid

        public boolean isTimeValid()
        Deprecated.
        Checks validity of time in the assertion.
        Overrides:
        isTimeValid in class AssertionBase
        Returns:
        true if time is valid otherwise false.
      • addStatement

        public boolean addStatement​(Statement statement)
        Deprecated.
        Adds the Statement object to the Statment's object Set.
        Overrides:
        addStatement in class AssertionBase
        Parameters:
        statement - the Statement object.
        Returns:
        false if statement is null else true.
      • toXMLString

        public String toXMLString()
                           throws FSMsgException
        Deprecated.
        Returns a XML String representation of this object.
        Returns:
        a String representation of this Object.
        Throws:
        FSMsgException - if there is an error creating the XML string.
      • toXMLString

        public String toXMLString​(boolean includeNS,
                                  boolean declareNS)
                           throws FSMsgException
        Deprecated.
        Returns a XML String representation of this object.
        Parameters:
        includeNS - determines whether or not the namespace qualifier is prepended to the Element when converted
        declareNS - determines whether or not the namespace is declared within the Element.
        Returns:
        a string containing the valid XML for this object.
        Throws:
        FSMsgException - if there is an error creating the XML string.
      • signXML

        public void signXML​(String certAlias)
                     throws SAMLException
        Deprecated.
        Signs the Assertion.
        Overrides:
        signXML in class Assertion
        Parameters:
        certAlias - the alias/name of the certificate.
        Throws:
        SAMLException - if FSAssertion cannot be signed.
      • setSignature

        public boolean setSignature​(Element elem)
        Deprecated.
        Sets the Element's signature.
        Overrides:
        setSignature in class AssertionBase
        Parameters:
        elem - the Element object
        Returns:
        true if signature is set otherwise false
      • parseAdvice

        public void parseAdvice​(Element element)
        Deprecated.
        Parses the advice element to extract the Security Assertion.
        Parameters:
        element - the Advice Element.
      • getDiscoveryCredential

        public List getDiscoveryCredential()
        Deprecated.
        Returns the discovery service credentials from the boot strap.
        Returns:
        the discovery service credentials from the boot strap.