public class LdapAuthenticator extends Object implements UsernamePasswordAuthenticator
Authenticator class.
It creates the user profile and stores it in the credentials for the AuthenticatorProfileCreator.| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
LdapAuthenticator() |
LdapAuthenticator(org.ldaptive.auth.Authenticator ldapAuthenticator) |
LdapAuthenticator(org.ldaptive.auth.Authenticator ldapAuthenticator,
String attributes) |
| Modifier and Type | Method and Description |
|---|---|
protected LdapProfile |
createProfile(String username,
String[] ldapAttributes,
org.ldaptive.LdapEntry entry) |
String |
getAttributes() |
org.ldaptive.auth.Authenticator |
getLdapAuthenticator() |
void |
setAttributes(String attributes) |
void |
setLdapAuthenticator(org.ldaptive.auth.Authenticator ldapAuthenticator) |
void |
validate(UsernamePasswordCredentials credentials)
Validate the credentials.
|
public LdapAuthenticator()
public LdapAuthenticator(org.ldaptive.auth.Authenticator ldapAuthenticator)
public LdapAuthenticator(org.ldaptive.auth.Authenticator ldapAuthenticator,
String attributes)
public void validate(UsernamePasswordCredentials credentials)
UsernamePasswordAuthenticatorCredentialsException in case of failure.validate in interface Authenticator<UsernamePasswordCredentials>validate in interface UsernamePasswordAuthenticatorcredentials - the given credentials.protected LdapProfile createProfile(String username, String[] ldapAttributes, org.ldaptive.LdapEntry entry)
public org.ldaptive.auth.Authenticator getLdapAuthenticator()
public void setLdapAuthenticator(org.ldaptive.auth.Authenticator ldapAuthenticator)
public String getAttributes()
public void setAttributes(String attributes)
Copyright © 2016. All rights reserved.