Class SsoContext

  • All Implemented Interfaces:
    Serializable

    public class SsoContext
    extends Object
    implements Serializable
    SsoContext is just a wrapper class that contains contextual information about a single sign-on event.
    See Also:
    Serialized Form
    • Method Detail

      • getSubjectAttrs

        public Map<String,​AttributeValue> getSubjectAttrs()
        Gets the attributes resulting from the PingFederate server's subject and attribute mapping process.
        Returns:
        the map of attributes (name/value pairs where the values are AttributeValue objects). This map should fulfill the the incoming attribute contract of your adapter implementation.
        See Also:
        AttributeValue
      • getIdpPartnerEntityId

        public String getIdpPartnerEntityId()
        Gets the entity id of the IDP who authenticated the user.
        Returns:
        the entity id.
      • getTargetResourceUrl

        public String getTargetResourceUrl()
        The URL that is the end target destination of the SSO.
        Returns:
        the target resource URL.
      • getSsoAssertion

        public AssertionType getSsoAssertion()
        The raw assertion that was relied upon for SSO.

        All protocol validation has been performed on the assertion and the commonly used values have been placed in the subject attributes map getSubjectAttributes(). In general, only advanced usages will need this method because getSubjectAttributes() contains most of the commonly needed information.

        Returns:
        an XmlBeans AssertionType object
      • getOtherValidAssertions

        public List<AssertionType> getOtherValidAssertions()
        If more than one assertion was included by the IdP, the additional valid assertion can be accessed by this method.

        All protocol validation has been performed on these assertions and the commonly used values have been placed in the subject attributes map getSubjectAttributes(). In general, only advanced usages will need this method because getSubjectAttributes() contains most of the commonly needed information.

        Returns:
        a list of XmlBeans AssertionType objects
      • getAuthenticationContext

        public String getAuthenticationContext()
        Gets the authentication context (class reference URI) or authentication method of the assertion.
        Returns:
        a string representing the method or context of the principals authentication event.
      • getAuthenticationInstant

        public Date getAuthenticationInstant()
        Gets the authentication instant.
        Returns:
        the authentication instant from the assertion.