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, validateCredential
abort, addValidOptions, checkOptions, createGroup, createIdentity, getCallerPrincipalGroup, getUnauthenticatedIdentity, getUseFirstPass, logout
protected String txManagerJndiName
protected boolean suspendResume
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
BaseCertLoginModule
initialize
in interface LoginModule
initialize
in class BaseCertLoginModule
options
- -
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
,
X509CertificateVerifier
protected Group[] getRoleSets() throws LoginException
BaseCertLoginModule
getRoleSets
in class BaseCertLoginModule
LoginException
DatabaseServerLoginModule.getRoleSets()
Copyright © 2017 JBoss by Red Hat. All rights reserved.