public class CertRolesLoginModule extends BaseCertLoginModule
BaseCertLoginModulecallbackHandler, jbossModuleName, log, loginOk, options, principalClassModuleName, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass| Constructor and Description |
|---|
CertRolesLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
protected Group[] |
getRoleSets()
This method is pretty much straight from the UsersRolesLoginModule.
|
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options)
Initialize this LoginModule.
|
boolean |
login()
Perform the authentication of the username and password.
|
commit, getAliasAndCert, getCredentials, getIdentity, getUsername, validateCredentialabort, addValidOptions, checkOptions, createGroup, createIdentity, getCallerPrincipalGroup, getUnauthenticatedIdentity, getUseFirstPass, logoutpublic void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize in interface LoginModuleinitialize in class BaseCertLoginModuleoptions - - the login module option map. Supported options include:
rolesProperties: The name of the properties resource containing user/roles
the default is "roles.properties".
roleGroupSeperator: The character used to seperate the role group name from
the username e.g., '.' in jduke.CallerPrincipal=... . The default = '.'.
defaultRolesProperties=string: The name of the properties resource containing
the username to roles mappings that will be used as the defaults
Properties passed to the usersProperties Properties. This defaults to
defaultRoles.properties.subject - 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 instancesSecurityDomain,
X509CertificateVerifierpublic boolean login()
throws LoginException
BaseCertLoginModulelogin in interface LoginModulelogin in class BaseCertLoginModuleLoginExceptionprotected Group[] getRoleSets() throws LoginException
getRoleSets in class BaseCertLoginModuleLoginExceptionUsersRolesLoginModule.getRoleSets()Copyright © 2017 JBoss by Red Hat. All rights reserved.