Class DefaultJmixSamlUserDetails

java.lang.Object
io.jmix.saml.user.DefaultJmixSamlUserDetails
All Implemented Interfaces:
HasSamlPrincipalDelegate, JmixSamlUserDetails, AcceptsGrantedAuthorities, JmixUserDetails, Serializable, org.springframework.security.core.AuthenticatedPrincipal, org.springframework.security.core.userdetails.UserDetails, org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal

public class DefaultJmixSamlUserDetails extends Object implements JmixSamlUserDetails, HasSamlPrincipalDelegate
Default implementation of JmixSamlUserDetails that delegates some method invocations to the wrapped Saml2AuthenticatedPrincipal.
See Also:
  • Constructor Details

    • DefaultJmixSamlUserDetails

      public DefaultJmixSamlUserDetails()
  • Method Details

    • getName

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

      public org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal getDelegate()
      Specified by:
      getDelegate in interface HasSamlPrincipalDelegate
    • setDelegate

      public void setDelegate(org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal delegate)
      Specified by:
      setDelegate in interface HasSamlPrincipalDelegate
    • getAttributes

      public Map<String,List<Object>> getAttributes()
      Specified by:
      getAttributes in interface org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal
    • setAuthorities

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

      public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
      Specified by:
      getAuthorities in interface org.springframework.security.core.userdetails.UserDetails
    • 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
    • getRelyingPartyRegistrationId

      public String getRelyingPartyRegistrationId()
      Specified by:
      getRelyingPartyRegistrationId in interface org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal
    • getSessionIndexes

      public List<String> getSessionIndexes()
      Specified by:
      getSessionIndexes in interface org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal
    • equals

      public boolean equals(Object obj)
      Equality is based on the username, like in the Spring Security User class. It is required for SessionRegistryImpl to group sessions of the same user, otherwise the maximum sessions per user limit is not enforced.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object