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 |
|---|---|
Attributes |
authenticate(String user,
Object credential,
String[] retAttrs)
This will authenticate by binding to the LDAP with the supplied user and
credential.
|
Attributes |
authenticate(String user,
Object credential,
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 Attributes authenticate(String user, Object credential, String[] retAttrs) throws 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 userNamingException - if any of the ldap operations failpublic Attributes authenticate(String user, Object credential, String[] retAttrs, AuthenticationResultHandler[] authHandler, AuthorizationHandler[] authzHandler) throws 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 userNamingException - if any of the ldap operations failCopyright © 2014. All rights reserved.