Package io.jmix.saml.user
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquality is based on the username, like in the Spring SecurityUserclass.Collection<? extends org.springframework.security.core.GrantedAuthority> org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipalgetName()inthashCode()voidsetAuthorities(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) voidsetDelegate(org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal delegate) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal
getAttribute, getFirstAttributeMethods inherited from interface org.springframework.security.core.userdetails.UserDetails
isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled
-
Constructor Details
-
DefaultJmixSamlUserDetails
public DefaultJmixSamlUserDetails()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.springframework.security.core.AuthenticatedPrincipal
-
getDelegate
public org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal getDelegate()- Specified by:
getDelegatein interfaceHasSamlPrincipalDelegate
-
setDelegate
public void setDelegate(org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal delegate) - Specified by:
setDelegatein interfaceHasSamlPrincipalDelegate
-
getAttributes
- Specified by:
getAttributesin interfaceorg.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal
-
setAuthorities
public void setAuthorities(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) - Specified by:
setAuthoritiesin interfaceAcceptsGrantedAuthorities
-
getAuthorities
- Specified by:
getAuthoritiesin interfaceorg.springframework.security.core.userdetails.UserDetails
-
getPassword
- Specified by:
getPasswordin interfaceorg.springframework.security.core.userdetails.UserDetails
-
getUsername
- Specified by:
getUsernamein interfaceorg.springframework.security.core.userdetails.UserDetails
-
getRelyingPartyRegistrationId
- Specified by:
getRelyingPartyRegistrationIdin interfaceorg.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal
-
getSessionIndexes
- Specified by:
getSessionIndexesin interfaceorg.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal
-
equals
Equality is based on the username, like in the Spring SecurityUserclass. It is required forSessionRegistryImplto group sessions of the same user, otherwise the maximum sessions per user limit is not enforced. -
hashCode
public int hashCode()
-