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 StringReturns the Access Token hash value(at_hash).Returns the Audience(s)(aud)that this ID Token is intended for.default InstantReturns the time when the End-User authentication occurred(auth_time).default StringReturns the Authentication Context Class Reference(acr).Returns the Authentication Methods References(amr).default StringReturns the Authorization Code hash value(c_hash).default StringReturns the Authorized party(azp)to which the ID Token was issued.default InstantReturns the Expiration time(exp)on or after which the ID Token MUST NOT be accepted.default InstantReturns the time at which the ID Token was issued(iat).default URLReturns the Issuer identifier(iss).default StringgetNonce()Returns aStringvalue(nonce)used to associate a Client session with an ID Token, and to mitigate replay attacks.default StringReturns the Subject identifier(sub).Methods inherited from interface org.springframework.security.oauth2.core.ClaimAccessor
getClaim, getClaimAsBoolean, getClaimAsInstant, getClaimAsMap, getClaimAsString, getClaimAsStringList, getClaimAsURL, getClaims, hasClaimMethods inherited from interface org.springframework.security.oauth2.core.oidc.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).- Returns:
- the Issuer identifier
-
getSubject
Returns the Subject identifier(sub).- Specified by:
getSubjectin interfaceStandardClaimAccessor- Returns:
- the Subject identifier
-
getAudience
Returns the Audience(s)(aud)that this ID Token is intended for.- Returns:
- the Audience(s) that this ID Token is intended for
-
getExpiresAt
Returns the Expiration time(exp)on or after which the ID Token MUST NOT be accepted.- Returns:
- the Expiration time on or after which the ID Token MUST NOT be accepted
-
getIssuedAt
Returns the time at which the ID Token was issued(iat).- Returns:
- the time at which the ID Token was issued
-
getAuthenticatedAt
Returns the time when the End-User authentication occurred(auth_time).- Returns:
- the time when the End-User authentication occurred
-
getNonce
Returns aStringvalue(nonce)used to associate a Client session with an ID Token, and to mitigate replay attacks.- Returns:
- the nonce used to associate a Client session with an ID Token
-
getAuthenticationContextClass
Returns the Authentication Context Class Reference(acr).- Returns:
- the Authentication Context Class Reference
-
getAuthenticationMethods
Returns the Authentication Methods References(amr).- Returns:
- the Authentication Methods References
-
getAuthorizedParty
Returns the Authorized party(azp)to which the ID Token was issued.- Returns:
- the Authorized party to which the ID Token was issued
-
getAccessTokenHash
Returns the Access Token hash value(at_hash).- Returns:
- the Access Token hash value
-
getAuthorizationCodeHash
Returns the Authorization Code hash value(c_hash).- Returns:
- the Authorization Code hash value
-