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

public class DefaultJmixOidcUser extends Object implements JmixOidcUser, HasOidcUserDelegate
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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Collection<? extends org.springframework.security.core.GrantedAuthority>
     
     
    org.springframework.security.oauth2.core.oidc.user.OidcUser
     
    org.springframework.security.oauth2.core.oidc.OidcIdToken
     
     
     
    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 interface HasOidcUserDelegate
    • setDelegate

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

      public String getPassword()
      Specified by:
      getPassword in interface org.springframework.security.core.userdetails.UserDetails
    • getUsername

      public String getUsername()
      Specified by:
      getUsername in interface org.springframework.security.core.userdetails.UserDetails
    • isAccountNonExpired

      public boolean isAccountNonExpired()
      Specified by:
      isAccountNonExpired in interface org.springframework.security.core.userdetails.UserDetails
    • isAccountNonLocked

      public boolean isAccountNonLocked()
      Specified by:
      isAccountNonLocked in interface org.springframework.security.core.userdetails.UserDetails
    • isCredentialsNonExpired

      public boolean isCredentialsNonExpired()
      Specified by:
      isCredentialsNonExpired in interface org.springframework.security.core.userdetails.UserDetails
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface org.springframework.security.core.userdetails.UserDetails
    • 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
    • getAuthorities

      public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
      Specified by:
      getAuthorities in interface org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal
      Specified by:
      getAuthorities in interface org.springframework.security.core.userdetails.UserDetails
    • getName

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

      public void setAuthorities(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
      Specified by:
      setAuthorities in interface AcceptsGrantedAuthorities