Interface OidcUser
-
- All Superinterfaces:
AuthenticatedPrincipal,ClaimAccessor,IdTokenClaimAccessor,OAuth2AuthenticatedPrincipal,OAuth2User,StandardClaimAccessor
- All Known Implementing Classes:
DefaultOidcUser
public interface OidcUser extends OAuth2User, IdTokenClaimAccessor
A representation of a userPrincipalthat is registered with an OpenID Connect 1.0 Provider.An
OidcUsercontains "claims" about the authentication of the End-User. The claims are aggregated from theOidcIdTokenand theOidcUserInfo(if available).Implementation instances of this interface represent an
AuthenticatedPrincipalwhich is associated to anAuthenticationobject and may be accessed viaAuthentication.getPrincipal().- Since:
- 5.0
- See Also:
DefaultOidcUser,OAuth2User,OidcIdToken,OidcUserInfo,IdTokenClaimAccessor,StandardClaimAccessor, ID Token, Standard Claims
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>getClaims()Returns the claims about the user.OidcIdTokengetIdToken()Returns theID Tokencontaining claims about the user.OidcUserInfogetUserInfo()Returns theUserInfocontaining claims about the user.-
Methods inherited from interface org.springframework.security.core.AuthenticatedPrincipal
getName
-
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.IdTokenClaimAccessor
getAccessTokenHash, getAudience, getAuthenticatedAt, getAuthenticationContextClass, getAuthenticationMethods, getAuthorizationCodeHash, getAuthorizedParty, getExpiresAt, getIssuedAt, getIssuer, getNonce, getSubject
-
Methods inherited from interface org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal
getAttribute, getAttributes, getAuthorities
-
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, getUpdatedAt, getWebsite, getZoneInfo
-
-
-
-
Method Detail
-
getClaims
java.util.Map<java.lang.String,java.lang.Object> getClaims()
Returns the claims about the user. The claims are aggregated fromgetIdToken()andgetUserInfo()(if available).- Specified by:
getClaimsin interfaceClaimAccessor- Returns:
- a
Mapof claims about the user
-
getUserInfo
OidcUserInfo getUserInfo()
Returns theUserInfocontaining claims about the user.- Returns:
- the
OidcUserInfocontaining claims about the user.
-
getIdToken
OidcIdToken getIdToken()
Returns theID Tokencontaining claims about the user.- Returns:
- the
OidcIdTokencontaining claims about the user.
-
-