public class DatabaseCertLoginModule extends BaseCertLoginModule
DatabaseServerLoginModule minus the
usersQuery.DatabaseServerLoginModule| Modifier and Type | Field and Description |
|---|---|
protected boolean |
suspendResume
Whether to suspend resume transactions during database operations
|
protected String |
txManagerJndiName
The JNDI name of the transaction manager
|
callbackHandler, jbossModuleName, log, loginOk, options, principalClassModuleName, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass| Constructor and Description |
|---|
DatabaseCertLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
protected Group[] |
getRoleSets()
Subclasses need to override this to provide the roles for authorization
|
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options)
Override the super version to pickup the following options after first
calling the super method.
|
commit, getAliasAndCert, getCredentials, getIdentity, getUsername, login, validateCredentialabort, addValidOptions, checkOptions, createGroup, createIdentity, getCallerPrincipalGroup, getUnauthenticatedIdentity, getUseFirstPass, logoutprotected String txManagerJndiName
protected boolean suspendResume
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
BaseCertLoginModuleinitialize in interface LoginModuleinitialize in class BaseCertLoginModuleoptions - -
dsJndiName: The name of the DataSource of the database containing the
Principals, Roles tables
rolesQuery: The prepared statement query, equivalent to:
"select Role, RoleGroup from Roles where PrincipalID=?"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,
X509CertificateVerifierprotected Group[] getRoleSets() throws LoginException
BaseCertLoginModulegetRoleSets in class BaseCertLoginModuleLoginExceptionDatabaseServerLoginModule.getRoleSets()Copyright © 2017 JBoss by Red Hat. All rights reserved.