Class OidcUserInfo
- java.lang.Object
-
- org.springframework.security.oauth2.core.oidc.OidcUserInfo
-
- All Implemented Interfaces:
java.io.Serializable,ClaimAccessor,StandardClaimAccessor
public class OidcUserInfo extends java.lang.Object implements StandardClaimAccessor, java.io.Serializable
A representation of a UserInfo Response that is returned from the OAuth 2.0 Protected Resource UserInfo Endpoint.The
OidcUserInfocontains a set of "Standard Claims" about the authentication of an End-User.- Since:
- 5.0
- See Also:
StandardClaimAccessor, UserInfo Response, UserInfo Endpoint, Standard Claims, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOidcUserInfo.BuilderA builder forOidcUserInfos
-
Constructor Summary
Constructors Constructor Description OidcUserInfo(java.util.Map<java.lang.String,java.lang.Object> claims)Constructs aOidcUserInfousing the provided parameters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OidcUserInfo.Builderbuilder()Create aOidcUserInfo.Builderbooleanequals(java.lang.Object obj)java.util.Map<java.lang.String,java.lang.Object>getClaims()Returns 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, wait
-
Methods inherited from interface org.springframework.security.oauth2.core.ClaimAccessor
containsClaim, 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
-
-
-
-
Method Detail
-
getClaims
public java.util.Map<java.lang.String,java.lang.Object> 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
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
builder
public static OidcUserInfo.Builder builder()
Create aOidcUserInfo.Builder- Returns:
- the
OidcUserInfo.Builderfor further configuration - Since:
- 5.3
-
-