Class OidcUserInfo
java.lang.Object
org.springframework.security.oauth2.core.oidc.OidcUserInfo
- All Implemented Interfaces:
Serializable, ClaimAccessor, StandardClaimAccessor
A representation of a UserInfo Response that is returned from the OAuth 2.0 Protected
Resource UserInfo Endpoint.
The OidcUserInfo contains a set of "Standard Claims" about the
authentication of an End-User.
- Since:
- 5.0
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionOidcUserInfo(Map<String, Object> claims) Constructs aOidcUserInfousing the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionstatic OidcUserInfo.Builderbuilder()Create aOidcUserInfo.Builder.booleanReturns a set of claims that may be used for assertions.inthashCode()Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ClaimAccessor
getClaim, getClaimAsBoolean, getClaimAsInstant, getClaimAsMap, getClaimAsString, getClaimAsStringList, getClaimAsURL, hasClaimMethods inherited from interface StandardClaimAccessor
getAddress, getBirthdate, getEmail, getEmailVerified, getFamilyName, getFullName, getGender, getGivenName, getLocale, getMiddleName, getNickName, getPhoneNumber, getPhoneNumberVerified, getPicture, getPreferredUsername, getProfile, getSubject, getUpdatedAt, getWebsite, getZoneInfo
-
Constructor Details
-
OidcUserInfo
-
-
Method Details
-
getClaims
Description copied from interface:ClaimAccessorReturns a set of claims that may be used for assertions.- Specified by:
getClaimsin interfaceClaimAccessor- Returns:
- a
Mapof claims
-
equals
-
hashCode
-
builder
Create aOidcUserInfo.Builder.- Returns:
- the
OidcUserInfo.Builderfor further configuration - Since:
- 5.3
-