Class AuthenticationSession


  • public class AuthenticationSession
    extends Object
    A class containing information about an existing PingFederate authentication session.

    PingFederate's Authentication Sessions capability allows any authentication source (IdP adapter or IdP connection) to be wrapped in a session. If a session has been created for a user and has not expired, PingFederate will return the stored authentication attributes instead of invoking the authentication source to authenticate the user.

    Since:
    9.0.3
    • Method Detail

      • getAuthnSourceKey

        public AuthenticationSourceKey getAuthnSourceKey()
        Gets the authentication source associated with the session.
        Returns:
        The authentication source for the session.
      • getAttributeMap

        public Map<String,​Object> getAttributeMap()
        Gets the authentication attributes associated with the session. These are the attributes that the authentication source returned when the session was initially created.
        Returns:
        The authentication attributes.
      • getCreationTimeMillis

        public long getCreationTimeMillis()
        Gets the time when the authentication session was created, in milliseconds since the epoch.
        Returns:
        The creation time for the session.