public class LDAPAuthenticator extends Object implements Authenticator<CredentialsUsernamePassword,DirContext>
Constructor and Description |
---|
LDAPAuthenticator(LDAPConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
DirContext |
authenticate(CredentialsUsernamePassword credentials)
Tries to authenticate the passed credentials and returns an apropriate
result.
|
DirContext |
authenticate(String username,
String password) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
lambda, sequence, then
public LDAPAuthenticator(LDAPConfiguration configuration)
public final DirContext authenticate(String username, String password) throws AuthenticationFailedException
AuthenticationFailedException
public DirContext authenticate(CredentialsUsernamePassword credentials) throws AuthenticationFailedException
Authenticator
authenticate
in interface Authenticator<CredentialsUsernamePassword,DirContext>
credentials
- the credentials to be authenticatedAuthenticationFailedException