Package io.jmix.oidc.user
Class DefaultJmixOidcUser
java.lang.Object
io.jmix.oidc.user.DefaultJmixOidcUser
- All Implemented Interfaces:
HasOidcUserDelegate
,JmixOidcUser
,AcceptsGrantedAuthorities
,JmixUserDetails
,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
The default implementation of
JmixOidcUser
that wraps the OidcUser
provided by the OpenID Connect 1.0
Provider and delegates some method invocations to the wrapped OidcUser
.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends org.springframework.security.core.GrantedAuthority>
org.springframework.security.oauth2.core.oidc.user.OidcUser
org.springframework.security.oauth2.core.oidc.OidcIdToken
getName()
org.springframework.security.oauth2.core.oidc.OidcUserInfo
boolean
boolean
boolean
boolean
void
setAuthorities
(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) void
setDelegate
(org.springframework.security.oauth2.core.oidc.user.OidcUser delegate) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
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
-
Constructor Details
-
DefaultJmixOidcUser
public DefaultJmixOidcUser()
-
-
Method Details
-
getDelegate
public org.springframework.security.oauth2.core.oidc.user.OidcUser getDelegate()- Specified by:
getDelegate
in interfaceHasOidcUserDelegate
-
setDelegate
public void setDelegate(org.springframework.security.oauth2.core.oidc.user.OidcUser delegate) - Specified by:
setDelegate
in interfaceHasOidcUserDelegate
-
getPassword
- Specified by:
getPassword
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
getUsername
- Specified by:
getUsername
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
isAccountNonExpired
public boolean isAccountNonExpired()- Specified by:
isAccountNonExpired
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
isAccountNonLocked
public boolean isAccountNonLocked()- Specified by:
isAccountNonLocked
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
isCredentialsNonExpired
public boolean isCredentialsNonExpired()- Specified by:
isCredentialsNonExpired
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
getClaims
- Specified by:
getClaims
in interfaceorg.springframework.security.oauth2.core.ClaimAccessor
- Specified by:
getClaims
in interfaceorg.springframework.security.oauth2.core.oidc.user.OidcUser
-
getUserInfo
public org.springframework.security.oauth2.core.oidc.OidcUserInfo getUserInfo()- Specified by:
getUserInfo
in interfaceorg.springframework.security.oauth2.core.oidc.user.OidcUser
-
getIdToken
public org.springframework.security.oauth2.core.oidc.OidcIdToken getIdToken()- Specified by:
getIdToken
in interfaceorg.springframework.security.oauth2.core.oidc.user.OidcUser
-
getAttributes
- Specified by:
getAttributes
in interfaceorg.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal
-
getAuthorities
- Specified by:
getAuthorities
in interfaceorg.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal
- Specified by:
getAuthorities
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
getName
- Specified by:
getName
in interfaceorg.springframework.security.core.AuthenticatedPrincipal
-
setAuthorities
public void setAuthorities(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) - Specified by:
setAuthorities
in interfaceAcceptsGrantedAuthorities
-