public class DefaultLdapAuthenticationProvider
extends org.springframework.security.ldap.authentication.LdapAuthenticationProvider
Constructor and 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) |
Modifier and Type | Method and 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
|
doAuthentication, getAuthoritiesPopulator, setHideUserNotFoundExceptions
public DefaultLdapAuthenticationProvider(org.springframework.security.ldap.authentication.LdapAuthenticator authenticator, org.pentaho.platform.api.engine.security.IAuthenticationRoleMapper roleMapper)
public DefaultLdapAuthenticationProvider(org.springframework.security.ldap.authentication.LdapAuthenticator authenticator, org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator authoritiesPopulator, org.pentaho.platform.api.engine.security.IAuthenticationRoleMapper roleMapper)
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)
protected Collection<? extends org.springframework.security.core.GrantedAuthority> loadUserAuthorities(org.springframework.ldap.core.DirContextOperations userData, String username, String password)
loadUserAuthorities
in class org.springframework.security.ldap.authentication.LdapAuthenticationProvider
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException
authenticate
in interface org.springframework.security.authentication.AuthenticationProvider
authenticate
in class org.springframework.security.ldap.authentication.AbstractLdapAuthenticationProvider
org.springframework.security.core.AuthenticationException
Copyright © 2019 Hitachi Vantara. All rights reserved.