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 IdToken
and optionally the UserInfo
.
Implementation instances of this interface represent an AuthenticatedPrincipal
which is associated to an Authentication
object
and may be accessed via Authentication.getPrincipal()
.
DefaultOidcUser
,
OAuth2User
,
IdToken
,
UserInfo
,
IdTokenClaimAccessor
,
StandardClaimAccessor
,
OpenID Connect Core 1.0,
ID Token,
Standard ClaimsModifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.Object> |
collectClaims(IdToken idToken,
UserInfo userInfo) |
java.util.Map<java.lang.String,java.lang.Object> |
getClaims() |
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