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
FieldsModifier and TypeFieldDescriptionprotected org.springframework.security.oauth2.core.oidc.user.OidcUser -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.oauth2.core.oidc.user.OidcUserorg.springframework.security.oauth2.core.oidc.OidcIdTokengetName()org.springframework.security.oauth2.core.oidc.OidcUserInfovoidsetDelegate(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, waitMethods inherited from interface io.jmix.security.authentication.AcceptsGrantedAuthorities
setAuthoritiesMethods inherited from interface org.springframework.security.oauth2.core.ClaimAccessor
getClaim, getClaimAsBoolean, getClaimAsInstant, getClaimAsMap, getClaimAsString, getClaimAsStringList, getClaimAsURL, hasClaimMethods inherited from interface org.springframework.security.oauth2.core.oidc.IdTokenClaimAccessor
getAccessTokenHash, getAudience, getAuthenticatedAt, getAuthenticationContextClass, getAuthenticationMethods, getAuthorizationCodeHash, getAuthorizedParty, getExpiresAt, getIssuedAt, getIssuer, getNonce, getSubjectMethods inherited from interface org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal
getAttribute, getAuthoritiesMethods 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, getZoneInfoMethods 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:
getDelegatein interfaceHasOidcUserDelegate
-
setDelegate
public void setDelegate(org.springframework.security.oauth2.core.oidc.user.OidcUser delegate) - Specified by:
setDelegatein interfaceHasOidcUserDelegate
-
getClaims
- Specified by:
getClaimsin interfaceorg.springframework.security.oauth2.core.ClaimAccessor- Specified by:
getClaimsin interfaceorg.springframework.security.oauth2.core.oidc.user.OidcUser
-
getUserInfo
public org.springframework.security.oauth2.core.oidc.OidcUserInfo getUserInfo()- Specified by:
getUserInfoin interfaceorg.springframework.security.oauth2.core.oidc.user.OidcUser
-
getIdToken
public org.springframework.security.oauth2.core.oidc.OidcIdToken getIdToken()- Specified by:
getIdTokenin interfaceorg.springframework.security.oauth2.core.oidc.user.OidcUser
-
getAttributes
- Specified by:
getAttributesin interfaceorg.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal
-
getName
- Specified by:
getNamein interfaceorg.springframework.security.core.AuthenticatedPrincipal
-