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 AddressStandardClaimReturns the user's preferred postal address(address).default StringReturns the user's birth date(birthdate).default StringgetEmail()Returns the user's preferred e-mail address(email).default BooleanReturnstrueif the user's e-mail address has been verified(email_verified), otherwisefalse.default StringReturns the user's surname(s) or last name(s)(family_name).default StringReturns the user's full name(name)in displayable form.default StringReturns the user's gender(gender).default StringReturns the user's given name(s) or first name(s)(given_name).default StringReturns the user's locale(locale).default StringReturns the user's middle name(s)(middle_name).default StringReturns the user's nick name(nickname)that may or may not be the same as the(given_name).default StringReturns the user's preferred phone number(phone_number).default BooleanReturnstrueif the user's phone number has been verified(phone_number_verified), otherwisefalse.default StringReturns the URL of the user's profile picture(picture).default StringReturns the preferred username(preferred_username)that the user wishes to be referred to.default StringReturns the URL of the user's profile page(profile).default StringReturns the Subject identifier(sub).default InstantReturns the time the user's information was last updated(updated_at).default StringReturns the URL of the user's web page or blog(website).default StringReturns 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
Returnstrueif the user's e-mail address has been verified(email_verified), otherwisefalse.- Returns:
trueif 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
Returnstrueif the user's phone number has been verified(phone_number_verified), otherwisefalse.- Returns:
trueif 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
-