Class UserDetailsContextMapperImpl
- java.lang.Object
-
- com.netgrif.application.engine.configuration.authentication.providers.ldap.UserDetailsContextMapperImpl
-
- All Implemented Interfaces:
org.springframework.security.ldap.userdetails.UserDetailsContextMapper
@ConditionalOnExpression("${nae.ldap.enabled:false}") public class UserDetailsContextMapperImpl extends java.lang.Object implements org.springframework.security.ldap.userdetails.UserDetailsContextMapper
-
-
Field Summary
Fields Modifier and Type Field Description protected ILdapGroupRefService
ldapGroupRefService
protected ILdapUserRefService
ldapUserRefService
protected LdapUserService
ldapUserService
protected NaeLdapProperties
properties
-
Constructor Summary
Constructors Constructor Description UserDetailsContextMapperImpl(LdapUserService ldapUserService, ILdapUserRefService ldapUserRefService, ILdapGroupRefService ldapGroupRefService, NaeLdapProperties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.userdetails.UserDetails
mapUserFromContext(org.springframework.ldap.core.DirContextOperations dirContextOperations, java.lang.String username, java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
void
mapUserToContext(org.springframework.security.core.userdetails.UserDetails user, org.springframework.ldap.core.DirContextAdapter ctx)
-
-
-
Field Detail
-
ldapUserService
protected LdapUserService ldapUserService
-
ldapUserRefService
protected ILdapUserRefService ldapUserRefService
-
properties
protected NaeLdapProperties properties
-
ldapGroupRefService
protected ILdapGroupRefService ldapGroupRefService
-
-
Constructor Detail
-
UserDetailsContextMapperImpl
public UserDetailsContextMapperImpl(LdapUserService ldapUserService, ILdapUserRefService ldapUserRefService, ILdapGroupRefService ldapGroupRefService, NaeLdapProperties properties)
-
-
Method Detail
-
mapUserFromContext
public org.springframework.security.core.userdetails.UserDetails mapUserFromContext(org.springframework.ldap.core.DirContextOperations dirContextOperations, java.lang.String username, java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
- Specified by:
mapUserFromContext
in interfaceorg.springframework.security.ldap.userdetails.UserDetailsContextMapper
-
mapUserToContext
public void mapUserToContext(org.springframework.security.core.userdetails.UserDetails user, org.springframework.ldap.core.DirContextAdapter ctx)
- Specified by:
mapUserToContext
in interfaceorg.springframework.security.ldap.userdetails.UserDetailsContextMapper
-
-