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

    Fields
    Modifier and Type
    Field
    Description
    protected org.springframework.security.oauth2.core.oidc.user.OidcUser
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    org.springframework.security.oauth2.core.oidc.user.OidcUser
     
    org.springframework.security.oauth2.core.oidc.OidcIdToken
     
     
    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

    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, 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 interface HasOidcUserDelegate
    • setDelegate

      public void setDelegate(org.springframework.security.oauth2.core.oidc.user.OidcUser delegate)
      Specified by:
      setDelegate in interface HasOidcUserDelegate
    • getClaims

      public Map<String,Object> getClaims()
      Specified by:
      getClaims in interface org.springframework.security.oauth2.core.ClaimAccessor
      Specified by:
      getClaims in interface org.springframework.security.oauth2.core.oidc.user.OidcUser
    • getUserInfo

      public org.springframework.security.oauth2.core.oidc.OidcUserInfo getUserInfo()
      Specified by:
      getUserInfo in interface org.springframework.security.oauth2.core.oidc.user.OidcUser
    • getIdToken

      public org.springframework.security.oauth2.core.oidc.OidcIdToken getIdToken()
      Specified by:
      getIdToken in interface org.springframework.security.oauth2.core.oidc.user.OidcUser
    • getAttributes

      public Map<String,Object> getAttributes()
      Specified by:
      getAttributes in interface org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal
    • getName

      public String getName()
      Specified by:
      getName in interface org.springframework.security.core.AuthenticatedPrincipal