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.BuilderbooleanReturns a set of claims that may be used for assertions.inthashCode()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.security.oauth2.core.ClaimAccessor
getClaim, getClaimAsBoolean, getClaimAsInstant, getClaimAsMap, getClaimAsString, getClaimAsStringList, getClaimAsURL, 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, getSubject, getUpdatedAt, getWebsite, getZoneInfo
-
Constructor Details
-
OidcUserInfo
Constructs aOidcUserInfousing the provided parameters.- Parameters:
claims- the claims about the authentication of the End-User
-
-
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
public int hashCode() -
builder
Create aOidcUserInfo.Builder- Returns:
- the
OidcUserInfo.Builderfor further configuration - Since:
- 5.3
-