Package io.jmix.oidc.user
Class JmixOidcUserEntity
java.lang.Object
io.jmix.oidc.user.JmixOidcUserEntity
- 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
@MappedSuperclass
public abstract class JmixOidcUserEntity
extends Object
implements JmixOidcUser, HasOidcUserDelegate
Mapped superclass to be extended by JPA entity that stores user information. Extend the
User
entity class
generated by Jmix Studio in order to make it work with jmix-oidc add-on.- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.security.oauth2.core.oidc.user.OidcUser
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.oauth2.core.oidc.user.OidcUser
org.springframework.security.oauth2.core.oidc.OidcIdToken
getName()
org.springframework.security.oauth2.core.oidc.OidcUserInfo
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 io.jmix.security.authentication.AcceptsGrantedAuthorities
setAuthorities
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, 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.springframework.security.core.userdetails.UserDetails
getAuthorities, getPassword, getUsername, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled
-
Field Details
-
delegate
protected org.springframework.security.oauth2.core.oidc.user.OidcUser delegate
-
-
Constructor Details
-
JmixOidcUserEntity
public JmixOidcUserEntity()
-
-
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
-
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
-
getName
- Specified by:
getName
in interfaceorg.springframework.security.core.AuthenticatedPrincipal
-