Class DefaultLdapAuthenticationProvider
- java.lang.Object
-
- org.springframework.security.ldap.authentication.AbstractLdapAuthenticationProvider
-
- org.springframework.security.ldap.authentication.LdapAuthenticationProvider
-
- org.pentaho.platform.plugin.services.security.userrole.ldap.DefaultLdapAuthenticationProvider
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.MessageSourceAware
,org.springframework.security.authentication.AuthenticationProvider
public class DefaultLdapAuthenticationProvider extends org.springframework.security.ldap.authentication.LdapAuthenticationProvider
-
-
Constructor Summary
Constructors Constructor Description DefaultLdapAuthenticationProvider(org.springframework.security.ldap.authentication.LdapAuthenticator authenticator, org.pentaho.platform.api.engine.security.IAuthenticationRoleMapper roleMapper)
DefaultLdapAuthenticationProvider(org.springframework.security.ldap.authentication.LdapAuthenticator authenticator, org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator authoritiesPopulator, org.pentaho.platform.api.engine.security.IAuthenticationRoleMapper roleMapper)
DefaultLdapAuthenticationProvider(org.springframework.security.ldap.authentication.LdapAuthenticator authenticator, org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator authoritiesPopulator, org.pentaho.platform.api.engine.security.IAuthenticationRoleMapper roleMapper, String authenticatedRole)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.Authentication
authenticate(org.springframework.security.core.Authentication authentication)
protected Collection<? extends org.springframework.security.core.GrantedAuthority>
loadUserAuthorities(org.springframework.ldap.core.DirContextOperations userData, String username, String password)
We need to iterate through the authorities and map them to pentaho security equivalent-
Methods inherited from class org.springframework.security.ldap.authentication.LdapAuthenticationProvider
doAuthentication, getAuthoritiesPopulator, setHideUserNotFoundExceptions
-
-
-
-
Constructor Detail
-
DefaultLdapAuthenticationProvider
public DefaultLdapAuthenticationProvider(org.springframework.security.ldap.authentication.LdapAuthenticator authenticator, org.pentaho.platform.api.engine.security.IAuthenticationRoleMapper roleMapper)
-
DefaultLdapAuthenticationProvider
public DefaultLdapAuthenticationProvider(org.springframework.security.ldap.authentication.LdapAuthenticator authenticator, org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator authoritiesPopulator, org.pentaho.platform.api.engine.security.IAuthenticationRoleMapper roleMapper)
-
DefaultLdapAuthenticationProvider
public DefaultLdapAuthenticationProvider(org.springframework.security.ldap.authentication.LdapAuthenticator authenticator, org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator authoritiesPopulator, org.pentaho.platform.api.engine.security.IAuthenticationRoleMapper roleMapper, String authenticatedRole)
-
-
Method Detail
-
loadUserAuthorities
protected Collection<? extends org.springframework.security.core.GrantedAuthority> loadUserAuthorities(org.springframework.ldap.core.DirContextOperations userData, String username, String password)
We need to iterate through the authorities and map them to pentaho security equivalent- Overrides:
loadUserAuthorities
in classorg.springframework.security.ldap.authentication.LdapAuthenticationProvider
-
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException
- Specified by:
authenticate
in interfaceorg.springframework.security.authentication.AuthenticationProvider
- Overrides:
authenticate
in classorg.springframework.security.ldap.authentication.AbstractLdapAuthenticationProvider
- Throws:
org.springframework.security.core.AuthenticationException
-
-