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
-
Field Summary
Fields inherited from class org.springframework.security.ldap.authentication.AbstractLdapAuthenticationProvider
logger, messages, userDetailsContextMapper
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultLdapAuthenticationProvider
(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
Modifier and TypeMethodDescriptionorg.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 equivalentMethods inherited from class org.springframework.security.ldap.authentication.LdapAuthenticationProvider
doAuthentication, getAuthoritiesPopulator, setHideUserNotFoundExceptions
Methods inherited from class org.springframework.security.ldap.authentication.AbstractLdapAuthenticationProvider
createSuccessfulAuthentication, getUserDetailsContextMapper, setAuthoritiesMapper, setMessageSource, setUseAuthenticationRequestCredentials, setUserDetailsContextMapper, supports
-
Constructor Details
-
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 Details
-
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
-