Interface StandardClaimAccessor
- All Superinterfaces:
ClaimAccessor
- All Known Subinterfaces:
IdTokenClaimAccessor
,OidcUser
- All Known Implementing Classes:
DefaultOidcUser
,OidcIdToken
,OidcUserInfo
A
ClaimAccessor
for the "Standard Claims" that can be returned either
in the UserInfo Response or the ID Token.- Since:
- 5.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault AddressStandardClaim
Returns the user's preferred postal address(address)
.default String
Returns the user's birth date(birthdate)
.default String
getEmail()
Returns the user's preferred e-mail address(email)
.default Boolean
Returnstrue
if the user's e-mail address has been verified(email_verified)
, otherwisefalse
.default String
Returns the user's surname(s) or last name(s)(family_name)
.default String
Returns the user's full name(name)
in displayable form.default String
Returns the user's gender(gender)
.default String
Returns the user's given name(s) or first name(s)(given_name)
.default String
Returns the user's locale(locale)
.default String
Returns the user's middle name(s)(middle_name)
.default String
Returns the user's nick name(nickname)
that may or may not be the same as the(given_name)
.default String
Returns the user's preferred phone number(phone_number)
.default Boolean
Returnstrue
if the user's phone number has been verified(phone_number_verified)
, otherwisefalse
.default String
Returns the URL of the user's profile picture(picture)
.default String
Returns the preferred username(preferred_username)
that the user wishes to be referred to.default String
Returns the URL of the user's profile page(profile)
.default String
Returns the Subject identifier(sub)
.default Instant
Returns the time the user's information was last updated(updated_at)
.default String
Returns the URL of the user's web page or blog(website)
.default String
Returns the user's time zone(zoneinfo)
.Methods inherited from interface org.springframework.security.oauth2.core.ClaimAccessor
getClaim, getClaimAsBoolean, getClaimAsInstant, getClaimAsMap, getClaimAsString, getClaimAsStringList, getClaimAsURL, getClaims, hasClaim
-
Method Details
-
getSubject
Returns the Subject identifier(sub)
.- Returns:
- the Subject identifier
-
getFullName
Returns the user's full name(name)
in displayable form.- Returns:
- the user's full name
-
getGivenName
Returns the user's given name(s) or first name(s)(given_name)
.- Returns:
- the user's given name(s)
-
getFamilyName
Returns the user's surname(s) or last name(s)(family_name)
.- Returns:
- the user's family names(s)
-
getMiddleName
Returns the user's middle name(s)(middle_name)
.- Returns:
- the user's middle name(s)
-
getNickName
Returns the user's nick name(nickname)
that may or may not be the same as the(given_name)
.- Returns:
- the user's nick name
-
getPreferredUsername
Returns the preferred username(preferred_username)
that the user wishes to be referred to.- Returns:
- the user's preferred user name
-
getProfile
Returns the URL of the user's profile page(profile)
.- Returns:
- the URL of the user's profile page
-
getPicture
Returns the URL of the user's profile picture(picture)
.- Returns:
- the URL of the user's profile picture
-
getWebsite
Returns the URL of the user's web page or blog(website)
.- Returns:
- the URL of the user's web page or blog
-
getEmail
Returns the user's preferred e-mail address(email)
.- Returns:
- the user's preferred e-mail address
-
getEmailVerified
Returnstrue
if the user's e-mail address has been verified(email_verified)
, otherwisefalse
.- Returns:
true
if the user's e-mail address has been verified, otherwisefalse
-
getGender
Returns the user's gender(gender)
.- Returns:
- the user's gender
-
getBirthdate
Returns the user's birth date(birthdate)
.- Returns:
- the user's birth date
-
getZoneInfo
Returns the user's time zone(zoneinfo)
.- Returns:
- the user's time zone
-
getLocale
Returns the user's locale(locale)
.- Returns:
- the user's locale
-
getPhoneNumber
Returns the user's preferred phone number(phone_number)
.- Returns:
- the user's preferred phone number
-
getPhoneNumberVerified
Returnstrue
if the user's phone number has been verified(phone_number_verified)
, otherwisefalse
.- Returns:
true
if the user's phone number has been verified, otherwisefalse
-
getAddress
Returns the user's preferred postal address(address)
.- Returns:
- the user's preferred postal address
-
getUpdatedAt
Returns the time the user's information was last updated(updated_at)
.- Returns:
- the time the user's information was last updated
-