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
public class OpenIDConnectSessionInfo extends OAuth2SessionInfo
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
Constructors Constructor Description OpenIDConnectSessionInfo(Clock clock, DataStore dataStore, JwtClaimsSet jwtClaimsSet)Constructs a OpenIDConnectSessionInfo object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JwtClaimsSetgetClaimSet()Returns the claims set associated with a user session.StringgetIdToken()Returns the id_token associated with a user session.booleanisActive()Returns the status of the auth server session.-
Methods inherited from class org.forgerock.oauth.clients.oauth2.OAuth2SessionInfo
getExpireTime
-
-
-
-
Constructor Detail
-
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 Detail
-
isActive
public boolean isActive()
Description copied from interface:SessionInfoReturns the status of the auth server session.- Specified by:
isActivein interfaceSessionInfo- Overrides:
isActivein classOAuth2SessionInfo- Returns:
- true if the session is still valid; false otherwise.
-
getClaimSet
public JwtClaimsSet getClaimSet()
Returns the claims set associated with a user session.- Returns:
- jwt claims set.
-
getIdToken
public String getIdToken()
Returns the id_token associated with a user session.- Returns:
- id token.
-
-