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
-
Constructor Summary
ConstructorDescriptionOidcUserInfo
(Map<String, Object> claims) Constructs aOidcUserInfo
using the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionstatic OidcUserInfo.Builder
builder()
Create aOidcUserInfo.Builder
boolean
Returns a set of claims that may be used for assertions.int
hashCode()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.security.oauth2.core.ClaimAccessor
getClaim, getClaimAsBoolean, getClaimAsInstant, getClaimAsMap, getClaimAsString, getClaimAsStringList, getClaimAsURL, hasClaim
Methods 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 aOidcUserInfo
using the provided parameters.- Parameters:
claims
- the claims about the authentication of the End-User
-
-
Method Details
-
getClaims
Description copied from interface:ClaimAccessor
Returns a set of claims that may be used for assertions.- Specified by:
getClaims
in interfaceClaimAccessor
- Returns:
- a
Map
of claims
-
equals
-
hashCode
public int hashCode() -
builder
Create aOidcUserInfo.Builder
- Returns:
- the
OidcUserInfo.Builder
for further configuration - Since:
- 5.3
-