edu.vt.middleware.ldap.jaas
public class JaasAuthenticator extends Authenticator
JaasAuthenticator is the default implementation for JAAS
authentication.config, logger| Constructor and Description |
|---|
JaasAuthenticator()
Default constructor.
|
JaasAuthenticator(AuthenticatorConfig authConfig)
This will create a new
JaasAuthenticator with the supplied
AuthenticatorConfig. |
| Modifier and Type | Method and Description |
|---|---|
javax.naming.directory.Attributes |
authenticate(java.lang.String user,
java.lang.Object credential,
java.lang.String[] retAttrs)
This will authenticate by binding to the LDAP with the supplied user and
credential.
|
javax.naming.directory.Attributes |
authenticate(java.lang.String user,
java.lang.Object credential,
java.lang.String[] retAttrs,
AuthenticationResultHandler[] authHandler,
AuthorizationHandler[] authzHandler)
This will authenticate by binding to the LDAP with the supplied user and
credential.
|
authenticate, authenticate, authenticate, authenticate, authenticate, authenticate, getAuthenticatorConfig, getDn, loadFromProperties, loadFromPropertiesauthenticateAndAuthorize, authenticateAndAuthorize, close, setAuthenticatorConfigpublic JaasAuthenticator()
public JaasAuthenticator(AuthenticatorConfig authConfig)
JaasAuthenticator with the supplied
AuthenticatorConfig.authConfig - AuthenticatorConfigpublic javax.naming.directory.Attributes authenticate(java.lang.String user,
java.lang.Object credential,
java.lang.String[] retAttrs)
throws javax.naming.NamingException
AuthenticatorConfig.setAuthorizationFilter(java.lang.String) has been
called, then it will be used to authorize the user by performing an ldap
compare. See Authenticator.authenticate(String, Object, SearchFilter, String[])authenticate in class Authenticatoruser - String username for bindcredential - Object credential for bindretAttrs - String[] to returnAttributes - of authenticated userjavax.naming.NamingException - if any of the ldap operations failpublic javax.naming.directory.Attributes authenticate(java.lang.String user,
java.lang.Object credential,
java.lang.String[] retAttrs,
AuthenticationResultHandler[] authHandler,
AuthorizationHandler[] authzHandler)
throws javax.naming.NamingException
DnResolver.resolve(String). See AbstractAuthenticator.authenticateAndAuthorize(String, Object, boolean, String[],
AuthenticationResultHandler[], AuthorizationHandler[]).authenticate in class Authenticatoruser - String username for bindcredential - Object credential for bindretAttrs - String[] to returnauthHandler - AuthenticationResultHandler[] to post
process authentication resultsauthzHandler - AuthorizationHandler[] to process
authorization after authenticationAttributes - of authenticated userjavax.naming.NamingException - if any of the ldap operations failCopyright © 2014. All Rights Reserved.