public class LdapRoleAuthorizationModule extends AbstractLoginModule
Modifier and Type | Field and Description |
---|---|
private boolean |
noResultsIsError
Whether failing to find any roles should raise an exception.
|
private String[] |
roleAttribute
Role attribute to add to role data.
|
private String |
roleFilter
Ldap filter for role searches.
|
private RoleResolver |
roleResolver
To search for roles.
|
private RoleResolverFactory |
roleResolverFactory
Factory for creating role resolvers with JAAS options.
|
private SearchRequest |
searchRequest
Search request to use for roles.
|
callbackHandler, clearPass, commitSuccess, credentials, defaultRole, logger, LOGIN_DN, LOGIN_NAME, LOGIN_PASSWORD, loginSuccess, principalGroupName, principals, roleGroupName, roles, setLdapCredential, setLdapDnPrincipal, setLdapPrincipal, sharedState, storePass, subject, tryFirstPass, useFirstPass
Constructor and Description |
---|
LdapRoleAuthorizationModule() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options) |
protected boolean |
login(NameCallback nameCb,
PasswordCallback passCb)
Authenticates a
Subject with the supplied callbacks. |
static void |
main(String[] args)
This provides command line access to this JAAS module.
|
abort, clearState, commit, getCredentials, login, logout, storeCredentials
private String roleFilter
private String[] roleAttribute
private boolean noResultsIsError
private RoleResolverFactory roleResolverFactory
private RoleResolver roleResolver
private SearchRequest searchRequest
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize
in interface LoginModule
initialize
in class AbstractLoginModule
protected boolean login(NameCallback nameCb, PasswordCallback passCb) throws LoginException
AbstractLoginModule
Subject
with the supplied callbacks.login
in class AbstractLoginModule
nameCb
- callback handler for subject's namepassCb
- callback handler for subject's passwordLoginException
- if the authentication failsCopyright © 2003-2019 Virginia Tech. All Rights Reserved.