Package io.jmix.saml.user
Class JmixSamlUserEntity
java.lang.Object
io.jmix.saml.user.JmixSamlUserEntity
- 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
@MappedSuperclass
public abstract class JmixSamlUserEntity
extends Object
implements JmixSamlUserDetails, HasSamlPrincipalDelegate
Mapped superclass to be extended by JPA entity that stores user information.
Extend the
User entity class generated by Jmix Studio to make it work with jmix-saml add-on.
The SAML principal delegate is set only during SAML authentication. Entity instances obtained through other paths (system authentication, user substitution, UI views, user repository lookups) have no delegate, so the delegating methods fall back to neutral values instead of failing.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<A> @Nullable List<A> getAttribute(String name) org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal<A> @Nullable AgetFirstAttribute(String name) getName()@Nullable StringvoidsetDelegate(org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal 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.core.userdetails.UserDetails
getAuthorities, getPassword, getUsername, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled
-
Constructor Details
-
JmixSamlUserEntity
public JmixSamlUserEntity()
-
-
Method Details
-
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
-
getName
- Specified by:
getNamein interfaceorg.springframework.security.core.AuthenticatedPrincipal
-
getFirstAttribute
- Specified by:
getFirstAttributein interfaceorg.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal
-
getAttribute
- Specified by:
getAttributein interfaceorg.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal
-
getAttributes
- Specified by:
getAttributesin interfaceorg.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal
-
getRelyingPartyRegistrationId
- Specified by:
getRelyingPartyRegistrationIdin interfaceorg.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal
-
getSessionIndexes
- Specified by:
getSessionIndexesin interfaceorg.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal
-