Interface IdTokenClaimAccessor
- All Superinterfaces:
ClaimAccessor, StandardClaimAccessor
- All Known Subinterfaces:
OidcUser
- All Known Implementing Classes:
DefaultOidcUser, OidcIdToken
A
ClaimAccessor for the "claims" that can be returned in the ID
Token, which provides information about the authentication of an End-User by an
Authorization Server.- Since:
- 5.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable StringReturns the Access Token hash value(at_hash), ornullif it does not exist.Returns the Audience(s)(aud)that this ID Token is intended for, ornullif it does not exist.default @Nullable InstantReturns the time when the End-User authentication occurred(auth_time), ornullif it does not exist.default @Nullable StringReturns the Authentication Context Class Reference(acr), ornullif it does not exist.Returns the Authentication Methods References(amr), ornullif it does not exist.default @Nullable StringReturns the Authorization Code hash value(c_hash), ornullif it does not exist.default @Nullable StringReturns the Authorized party(azp)to which the ID Token was issued, ornullif it does not exist.default @Nullable InstantReturns the Expiration time(exp)on or after which the ID Token MUST NOT be accepted, ornullif it does not exist.default @Nullable InstantReturns the time at which the ID Token was issued(iat), ornullif it does not exist.default @Nullable URLReturns the Issuer identifier(iss), ornullif it does not exist.default @Nullable StringgetNonce()Returns aStringvalue(nonce)used to associate a Client session with an ID Token, and to mitigate replay attacks, ornullif it does not exist.default @Nullable StringReturns the Subject identifier(sub), ornullif it does not exist.Methods inherited from interface ClaimAccessor
getClaim, getClaimAsBoolean, getClaimAsInstant, getClaimAsMap, getClaimAsString, getClaimAsStringList, getClaimAsURL, getClaims, hasClaimMethods inherited from interface StandardClaimAccessor
getAddress, getBirthdate, getEmail, getEmailVerified, getFamilyName, getFullName, getGender, getGivenName, getLocale, getMiddleName, getNickName, getPhoneNumber, getPhoneNumberVerified, getPicture, getPreferredUsername, getProfile, getUpdatedAt, getWebsite, getZoneInfo
-
Method Details
-
getIssuer
Returns the Issuer identifier(iss), ornullif it does not exist.- Returns:
- the Issuer identifier, or
nullif it does not exist
-
getSubject
Returns the Subject identifier(sub), ornullif it does not exist.- Specified by:
getSubjectin interfaceStandardClaimAccessor- Returns:
- the Subject identifier, or
nullif it does not exist
-
getAudience
-
getExpiresAt
Returns the Expiration time(exp)on or after which the ID Token MUST NOT be accepted, ornullif it does not exist.- Returns:
- the Expiration time on or after which the ID Token MUST NOT be accepted, or
nullif it does not exist
-
getIssuedAt
Returns the time at which the ID Token was issued(iat), ornullif it does not exist.- Returns:
- the time at which the ID Token was issued, or
nullif it does not exist
-
getAuthenticatedAt
Returns the time when the End-User authentication occurred(auth_time), ornullif it does not exist.- Returns:
- the time when the End-User authentication occurred, or
nullif it does not exist
-
getNonce
Returns aStringvalue(nonce)used to associate a Client session with an ID Token, and to mitigate replay attacks, ornullif it does not exist.- Returns:
- the nonce used to associate a Client session with an ID Token, or
nullif it does not exist
-
getAuthenticationContextClass
Returns the Authentication Context Class Reference(acr), ornullif it does not exist.- Returns:
- the Authentication Context Class Reference, or
nullif it does not exist
-
getAuthenticationMethods
-
getAuthorizedParty
Returns the Authorized party(azp)to which the ID Token was issued, ornullif it does not exist.- Returns:
- the Authorized party to which the ID Token was issued, or
nullif it does not exist
-
getAccessTokenHash
Returns the Access Token hash value(at_hash), ornullif it does not exist.- Returns:
- the Access Token hash value, or
nullif it does not exist
-
getAuthorizationCodeHash
Returns the Authorization Code hash value(c_hash), ornullif it does not exist.- Returns:
- the Authorization Code hash value, or
nullif it does not exist
-