java.lang.Object
org.springframework.security.oauth2.core.AbstractOAuth2Token
org.springframework.security.oauth2.core.oidc.OidcIdToken
All Implemented Interfaces:
Serializable, ClaimAccessor, OAuth2Token, IdTokenClaimAccessor, StandardClaimAccessor

public class OidcIdToken extends AbstractOAuth2Token implements IdTokenClaimAccessor
An implementation of an AbstractOAuth2Token representing an OpenID Connect Core 1.0 ID Token.

The OidcIdToken is a security token that contains "claims" about the authentication of an End-User by an Authorization Server.

Since:
5.0
See Also:
  • Constructor Details

    • OidcIdToken

      public OidcIdToken(String tokenValue, Instant issuedAt, Instant expiresAt, Map<String,Object> claims)
      Constructs a OidcIdToken using the provided parameters.
      Parameters:
      tokenValue - the ID Token value
      issuedAt - the time at which the ID Token was issued (iat)
      expiresAt - the expiration time (exp) on or after which the ID Token MUST NOT be accepted
      claims - the claims about the authentication of the End-User
  • Method Details