Class 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.
    • 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: SessionInfo
        Returns the status of the auth server session.
        Specified by:
        isActive in interface SessionInfo
        Overrides:
        isActive in class OAuth2SessionInfo
        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.