Abstract base class for LoginModules that interact with a database to retrieve authentication and authorization information. Used by the JDBCLoginModule and DataSourceLoginModule.
| Modifier and Type | Class and Description |
|---|---|
| public class |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private String | |
| private String | |
| private String | |
| private String | |
| private String | |
| private static final Logger | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Connection | |
| public List | |
| public AbstractLoginModule. | getUser(String
user info to load userName)Implements abstract org. |
| public void | initialize(Subject
the subject subject, CallbackHandler the callback handler callbackHandler, Map<String, ?> the shared state map sharedState, Map<String, ?> the option map options)Overrides org. Implements javax. LoginModule.
|
| dbUserRoleTable | back to summary |
|---|---|
| private String dbUserRoleTable | |
| dbUserRoleTableRoleField | back to summary |
|---|---|
| private String dbUserRoleTableRoleField | |
| dbUserRoleTableUserField | back to summary |
|---|---|
| private String dbUserRoleTableUserField | |
| dbUserTable | back to summary |
|---|---|
| private String dbUserTable | |
| dbUserTableCredentialField | back to summary |
|---|---|
| private String dbUserTableCredentialField | |
| dbUserTableUserField | back to summary |
|---|---|
| private String dbUserTableUserField | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| rolesQuery | back to summary |
|---|---|
| private String rolesQuery | |
| userQuery | back to summary |
|---|---|
| private String userQuery | |
| AbstractDatabaseLoginModule | back to summary |
|---|---|
| public AbstractDatabaseLoginModule() | |
| getConnection | back to summary |
|---|---|
public abstract Connection getConnection() throws Exception
| |
| getRoles | back to summary |
|---|---|
| public List | |
| getUser | back to summary |
|---|---|
| public AbstractLoginModule. Implements abstract org. Load info from database | |
| initialize | back to summary |
|---|---|
| public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) Overrides org. Implements javax. Doc from javax. Initialize this This method is called by the
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public List | doFetchRoles()
Implements abstract org. |
| JDBCUser | back to summary |
|---|---|
| public JDBCUser(UserPrincipal user) | |
| doFetchRoles | back to summary |
|---|---|
| public List Implements abstract org.
| |