Package com.pingidentity.sdk
Class AuthenticationSession
java.lang.Object
com.pingidentity.sdk.AuthenticationSession
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
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationSession(AuthenticationSourceKey authnSourceKey, Map<String, Object> attributeMap, long creationTimeMillis) -
Method Summary
Modifier and TypeMethodDescriptionGets the authentication attributes associated with the session.Gets the authentication source associated with the session.longGets the time when the authentication session was created, in milliseconds since the epoch.
-
Constructor Details
-
AuthenticationSession
public AuthenticationSession(AuthenticationSourceKey authnSourceKey, Map<String, Object> attributeMap, long creationTimeMillis)
-
-
Method Details
-
getAuthnSourceKey
Gets the authentication source associated with the session.- Returns:
- The authentication source for the session.
-
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.
-