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
OidcUserInfo
contains 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 class
OidcUserInfo.Builder
A builder forOidcUserInfo
s
-
Constructor Summary
Constructors Constructor Description OidcUserInfo(java.util.Map<java.lang.String,java.lang.Object> claims)
Constructs aOidcUserInfo
using the provided parameters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OidcUserInfo.Builder
builder()
Create aOidcUserInfo.Builder
boolean
equals(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.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
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:ClaimAccessor
Returns a set of claims that may be used for assertions.- Specified by:
getClaims
in interfaceClaimAccessor
- Returns:
- a
Map
of claims
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
builder
public static OidcUserInfo.Builder builder()
Create aOidcUserInfo.Builder
- Returns:
- the
OidcUserInfo.Builder
for further configuration - Since:
- 5.3
-
-