public class RoleMappingLoginModule extends AbstractServerLoginModule
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
REPLACE_ROLE
Should the matching role be replaced
|
callbackHandler, jbossModuleName, log, loginOk, options, principalClassModuleName, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass| Constructor and Description |
|---|
RoleMappingLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
protected Principal |
getIdentity()
Overriden by subclasses to return the Principal that corresponds to
the user primary identity.
|
protected Group[] |
getRoleSets()
Overriden by subclasses to return the Groups that correspond to the
to the role sets assigned to the user.
|
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options)
Initialize the login module.
|
boolean |
login()
Looks for javax.security.auth.login.name and javax.security.auth.login.password
values in the sharedState map if the useFirstPass option was true and returns
true if they exist.
|
abort, addValidOptions, checkOptions, commit, createGroup, createIdentity, getCallerPrincipalGroup, getUnauthenticatedIdentity, getUseFirstPass, logoutpublic void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
AbstractServerLoginModuleinitialize in interface LoginModuleinitialize in class AbstractServerLoginModulesubject - the Subject to update after a successful login.callbackHandler - the CallbackHandler that will be used to obtain the
the user identity and credentials.sharedState - a Map shared between all configured login module instancesoptions - the parameters passed to the login module.public boolean login()
throws LoginException
AbstractServerLoginModulelogin in interface LoginModulelogin in class AbstractServerLoginModuleLoginExceptionLoginModule.login()protected Principal getIdentity()
AbstractServerLoginModulegetIdentity in class AbstractServerLoginModuleAbstractServerLoginModule.getIdentity()protected Group[] getRoleSets() throws LoginException
AbstractServerLoginModulegetRoleSets in class AbstractServerLoginModuleLoginExceptionAbstractServerLoginModule.getRoleSets()Copyright © 2018 JBoss by Red Hat. All rights reserved.