Package com.pingidentity.sdk
Class AuthenticationSession
- java.lang.Object
-
- com.pingidentity.sdk.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
-
-
Constructor Summary
Constructors Constructor Description AuthenticationSession(AuthenticationSourceKey authnSourceKey, Map<String,Object> attributeMap, long creationTimeMillis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getAttributeMap()Gets the authentication attributes associated with the session.AuthenticationSourceKeygetAuthnSourceKey()Gets the authentication source associated with the session.longgetCreationTimeMillis()Gets the time when the authentication session was created, in milliseconds since the epoch.
-
-
-
Constructor Detail
-
AuthenticationSession
public AuthenticationSession(AuthenticationSourceKey authnSourceKey, Map<String,Object> attributeMap, long creationTimeMillis)
-
-
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.
-
-