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 optionally the OidcUserInfo
.
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 ClaimsModifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getClaims() |
OidcIdToken |
getIdToken() |
OidcUserInfo |
getUserInfo() |
getAttributes, getAuthorities
getName
getAccessTokenHash, getAudience, getAuthenticatedAt, getAuthenticationContextClass, getAuthenticationMethods, getAuthorizationCodeHash, getAuthorizedParty, getExpiresAt, getIssuedAt, getIssuer, getNonce, getSubject
getAddress, getBirthdate, getEmail, getEmailVerified, getFamilyName, getFullName, getGender, getGivenName, getLocale, getMiddleName, getNickName, getPhoneNumber, getPhoneNumberVerified, getPicture, getPreferredUsername, getProfile, getUpdatedAt, getWebsite, getZoneInfo
containsClaim, getClaimAsBoolean, getClaimAsInstant, getClaimAsMap, getClaimAsString, getClaimAsStringList, getClaimAsURL
java.util.Map<java.lang.String,java.lang.Object> getClaims()
getClaims
in interface ClaimAccessor
OidcUserInfo getUserInfo()
OidcIdToken getIdToken()