Class AccessTokenResponseContext

All Implemented Interfaces:
Iterable<BaseContext>

public class AccessTokenResponseContext extends AbstractAuthenticatableOIDCContext
A context to hold an OIDC token request response. If authenticated, the Token was received over a TLS protected channel where TLS credential validation was performed and successful.
  • Field Details

    • tokenResponse

      @Nullable private com.nimbusds.openid.connect.sdk.OIDCTokenResponse tokenResponse
      The OAuth 2.0 and OIDC token response.
    • tokenResponseCreatedAt

      @Nullable private Instant tokenResponseCreatedAt
      The time the token response was set onto this context.
  • Constructor Details

    • AccessTokenResponseContext

      public AccessTokenResponseContext()
  • Method Details

    • setTokenResponse

      public AccessTokenResponseContext setTokenResponse(@Nullable com.nimbusds.openid.connect.sdk.OIDCTokenResponse token)
      Set the OAuth 2.0 and OIDC Token Response.
      Parameters:
      token - the token response
      Returns:
      this
    • getTokenResponse

      @Nullable public com.nimbusds.openid.connect.sdk.OIDCTokenResponse getTokenResponse()
      Get the OAuth 2.0 and OIDC Token Response.
      Returns:
      the token response
    • getTokenResponseCreatedAt

      @Nullable public Instant getTokenResponseCreatedAt()
      Get the time the token response was set onto this context.
      Returns:
      the time the token response was set onto this context