Package org.forgerock.oauth.clients.oidc
Class OpenIDConnectSessionInfo
java.lang.Object
org.forgerock.oauth.clients.oauth2.OAuth2SessionInfo
org.forgerock.oauth.clients.oidc.OpenIDConnectSessionInfo
- All Implemented Interfaces:
SessionInfo
OpenIDSessionInfo object used to determine if the access token or id token expiry time has passed and to determine
if a session is still active.
-
Field Summary
Fields inherited from class org.forgerock.oauth.clients.oauth2.OAuth2SessionInfo
clock, expireTime
-
Constructor Summary
ConstructorDescriptionOpenIDConnectSessionInfo
(Clock clock, DataStore dataStore, JwtClaimsSet jwtClaimsSet) Constructs a OpenIDConnectSessionInfo object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the claims set associated with a user session.Returns the id_token associated with a user session.boolean
isActive()
Returns the status of the auth server session.Methods inherited from class org.forgerock.oauth.clients.oauth2.OAuth2SessionInfo
getExpireTime
-
Constructor Details
-
OpenIDConnectSessionInfo
public OpenIDConnectSessionInfo(Clock clock, DataStore dataStore, JwtClaimsSet jwtClaimsSet) throws OAuthException Constructs a OpenIDConnectSessionInfo object.- Parameters:
clock
- clock.dataStore
- data store implementation used to retrieve session information from.jwtClaimsSet
- claim set from the jwt id token.- Throws:
OAuthException
- when there is an issue retrieving user information.
-
-
Method Details
-
isActive
public boolean isActive()Description copied from interface:SessionInfo
Returns the status of the auth server session.- Specified by:
isActive
in interfaceSessionInfo
- Overrides:
isActive
in classOAuth2SessionInfo
- Returns:
- true if the session is still valid; false otherwise.
-
getClaimSet
Returns the claims set associated with a user session.- Returns:
- jwt claims set.
-
getIdToken
Returns the id_token associated with a user session.- Returns:
- id token.
-