public interface OidcUser extends OAuth2User, IdTokenClaimAccessor
Principal
that is registered with an OpenID Connect 1.0 Provider.
An OidcUser contains "claims" about the authentication of the End-User.
The claims are aggregated from the OidcIdToken and the OidcUserInfo (if available).
Implementation instances of this interface represent an AuthenticatedPrincipal
which is associated to an Authentication object
and may be accessed via Authentication.getPrincipal().
DefaultOidcUser,
OAuth2User,
OidcIdToken,
OidcUserInfo,
IdTokenClaimAccessor,
StandardClaimAccessor,
ID Token,
Standard Claims| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getClaims()
Returns the claims about the user.
|
OidcIdToken |
getIdToken()
Returns the
ID Token containing claims about the user. |
OidcUserInfo |
getUserInfo()
Returns the
UserInfo containing claims about the user. |
getAttribute, getAttributes, getAuthoritiesgetAccessTokenHash, getAudience, getAuthenticatedAt, getAuthenticationContextClass, getAuthenticationMethods, getAuthorizationCodeHash, getAuthorizedParty, getExpiresAt, getIssuedAt, getIssuer, getNonce, getSubjectgetAddress, getBirthdate, getEmail, getEmailVerified, getFamilyName, getFullName, getGender, getGivenName, getLocale, getMiddleName, getNickName, getPhoneNumber, getPhoneNumberVerified, getPicture, getPreferredUsername, getProfile, getUpdatedAt, getWebsite, getZoneInfocontainsClaim, getClaim, getClaimAsBoolean, getClaimAsInstant, getClaimAsMap, getClaimAsString, getClaimAsStringList, getClaimAsURLjava.util.Map<java.lang.String,java.lang.Object> getClaims()
getIdToken() and getUserInfo() (if available).getClaims in interface ClaimAccessorMap of claims about the userOidcUserInfo getUserInfo()
UserInfo containing claims about the user.OidcUserInfo containing claims about the user.OidcIdToken getIdToken()
ID Token containing claims about the user.OidcIdToken containing claims about the user.