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 @Nullable StringReturns the user's birth date(birthdate), ornullif it does not exist.default @Nullable StringgetEmail()Returns the user's preferred e-mail address(email), ornullif it does not exist.default @Nullable BooleanReturnstrueif the user's e-mail address has been verified(email_verified), otherwisefalse, ornullif it does not exist.default @Nullable StringReturns the user's surname(s) or last name(s)(family_name), ornullif it does not exist.default @Nullable StringReturns the user's full name(name)in displayable form, ornullif it does not exist.default @Nullable StringReturns the user's gender(gender), ornullif it does not exist.default @Nullable StringReturns the user's given name(s) or first name(s)(given_name), ornullif it does not exist.default @Nullable StringReturns the user's locale(locale), ornullif it does not exist.default @Nullable StringReturns the user's middle name(s)(middle_name), ornullif it does not exist.default @Nullable StringReturns the user's nick name(nickname)that may or may not be the same as the(given_name), ornullif it does not exist.default @Nullable StringReturns the user's preferred phone number(phone_number), ornullif it does not exist.default @Nullable BooleanReturnstrueif the user's phone number has been verified(phone_number_verified), otherwisefalse, ornullif it does not exist.default @Nullable StringReturns the URL of the user's profile picture(picture), ornullif it does not exist.default @Nullable StringReturns the preferred username(preferred_username)that the user wishes to be referred to, ornullif it does not exist.default @Nullable StringReturns the URL of the user's profile page(profile), ornullif it does not exist.default @Nullable StringReturns the Subject identifier(sub), ornullif it does not exist.default @Nullable InstantReturns the time the user's information was last updated(updated_at), ornullif it does not exist.default @Nullable StringReturns the URL of the user's web page or blog(website), ornullif it does not exist.default @Nullable StringReturns the user's time zone(zoneinfo), ornullif it does not exist.Methods inherited from interface ClaimAccessor
getClaim, getClaimAsBoolean, getClaimAsInstant, getClaimAsMap, getClaimAsString, getClaimAsStringList, getClaimAsURL, getClaims, hasClaim
-
Method Details
-
getSubject
Returns the Subject identifier(sub), ornullif it does not exist.- Returns:
- the Subject identifier, or
nullif it does not exist
-
getFullName
Returns the user's full name(name)in displayable form, ornullif it does not exist.- Returns:
- the user's full name, or
nullif it does not exist
-
getGivenName
Returns the user's given name(s) or first name(s)(given_name), ornullif it does not exist.- Returns:
- the user's given name(s), or
nullif it does not exist
-
getFamilyName
Returns the user's surname(s) or last name(s)(family_name), ornullif it does not exist.- Returns:
- the user's family names(s), or
nullif it does not exist
-
getMiddleName
Returns the user's middle name(s)(middle_name), ornullif it does not exist.- Returns:
- the user's middle name(s), or
nullif it does not exist
-
getNickName
Returns the user's nick name(nickname)that may or may not be the same as the(given_name), ornullif it does not exist.- Returns:
- the user's nick name, or
nullif it does not exist
-
getPreferredUsername
Returns the preferred username(preferred_username)that the user wishes to be referred to, ornullif it does not exist.- Returns:
- the user's preferred user name, or
nullif it does not exist
-
getProfile
Returns the URL of the user's profile page(profile), ornullif it does not exist.- Returns:
- the URL of the user's profile page, or
nullif it does not exist
-
getPicture
Returns the URL of the user's profile picture(picture), ornullif it does not exist.- Returns:
- the URL of the user's profile picture, or
nullif it does not exist
-
getWebsite
Returns the URL of the user's web page or blog(website), ornullif it does not exist.- Returns:
- the URL of the user's web page or blog, or
nullif it does not exist
-
getEmail
Returns the user's preferred e-mail address(email), ornullif it does not exist.- Returns:
- the user's preferred e-mail address, or
nullif it does not exist
-
getEmailVerified
Returnstrueif the user's e-mail address has been verified(email_verified), otherwisefalse, ornullif it does not exist.- Returns:
trueif the user's e-mail address has been verified, otherwisefalse, ornullif it does not exist
-
getGender
Returns the user's gender(gender), ornullif it does not exist.- Returns:
- the user's gender, or
nullif it does not exist
-
getBirthdate
Returns the user's birth date(birthdate), ornullif it does not exist.- Returns:
- the user's birth date, or
nullif it does not exist
-
getZoneInfo
Returns the user's time zone(zoneinfo), ornullif it does not exist.- Returns:
- the user's time zone, or
nullif it does not exist
-
getLocale
Returns the user's locale(locale), ornullif it does not exist.- Returns:
- the user's locale, or
nullif it does not exist
-
getPhoneNumber
Returns the user's preferred phone number(phone_number), ornullif it does not exist.- Returns:
- the user's preferred phone number, or
nullif it does not exist
-
getPhoneNumberVerified
Returnstrueif the user's phone number has been verified(phone_number_verified), otherwisefalse, ornullif it does not exist.- Returns:
trueif the user's phone number has been verified, otherwisefalse, ornullif it does not exist
-
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), ornullif it does not exist.- Returns:
- the time the user's information was last updated, or
nullif it does not exist
-