Package org.tailormap.api.security
Class TailormapOidcUser
java.lang.Object
org.springframework.security.oauth2.core.user.DefaultOAuth2User
org.springframework.security.oauth2.core.oidc.user.DefaultOidcUser
org.tailormap.api.security.TailormapOidcUser
- All Implemented Interfaces:
Serializable
,org.springframework.security.core.AuthenticatedPrincipal
,org.springframework.security.core.userdetails.UserDetails
,org.springframework.security.oauth2.core.ClaimAccessor
,org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal
,org.springframework.security.oauth2.core.oidc.IdTokenClaimAccessor
,org.springframework.security.oauth2.core.oidc.StandardClaimAccessor
,org.springframework.security.oauth2.core.oidc.user.OidcUser
,org.springframework.security.oauth2.core.user.OAuth2User
,TailormapUserDetails
public class TailormapOidcUser
extends org.springframework.security.oauth2.core.oidc.user.DefaultOidcUser
implements TailormapUserDetails
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTailormapOidcUser
(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, org.springframework.security.oauth2.core.oidc.OidcIdToken idToken, org.springframework.security.oauth2.core.oidc.OidcUserInfo userInfo, String nameAttributeKey, String oidcRegistrationName, Collection<TailormapAdditionalProperty> additionalGroupProperties) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class org.springframework.security.oauth2.core.oidc.user.DefaultOidcUser
getClaims, getIdToken, getUserInfo
Methods inherited from class org.springframework.security.oauth2.core.user.DefaultOAuth2User
equals, getAttributes, getAuthorities, getName, hashCode, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.security.core.AuthenticatedPrincipal
getName
Methods inherited from interface org.springframework.security.oauth2.core.ClaimAccessor
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
Methods inherited from interface org.tailormap.api.security.TailormapUserDetails
hasTruePropertyForKey, streamAllPropertiesForKey
Methods inherited from interface org.springframework.security.core.userdetails.UserDetails
getAuthorities, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled
-
Constructor Details
-
TailormapOidcUser
public TailormapOidcUser(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, org.springframework.security.oauth2.core.oidc.OidcIdToken idToken, org.springframework.security.oauth2.core.oidc.OidcUserInfo userInfo, String nameAttributeKey, String oidcRegistrationName, Collection<TailormapAdditionalProperty> additionalGroupProperties)
-
-
Method Details
-
getAdditionalProperties
- Specified by:
getAdditionalProperties
in interfaceTailormapUserDetails
-
getAdditionalGroupProperties
- Specified by:
getAdditionalGroupProperties
in interfaceTailormapUserDetails
-
getPassword
- Specified by:
getPassword
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
getUsername
- Specified by:
getUsername
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
getOrganisation
- Specified by:
getOrganisation
in interfaceTailormapUserDetails
-