JAAS LoginModule to retrieve user information from a database and authenticate the user.
Notes
This version uses plain old JDBC connections NOT DataSources.
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private String | |
| private String | |
| private String | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Connection | Returns: the connection for this datasourceImplements abstract org. Get a connection from the DriverManager |
| public void | initialize(Subject
the subject subject, CallbackHandler the callback handler callbackHandler, Map<String, ?> the shared state map sharedState, Map<String, ?> the options map options)Overrides org. Implements javax. Init LoginModule. |
| dbDriver | back to summary |
|---|---|
| private String dbDriver | |
| dbPassword | back to summary |
|---|---|
| private String dbPassword | |
| dbUrl | back to summary |
|---|---|
| private String dbUrl | |
| dbUserName | back to summary |
|---|---|
| private String dbUserName | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG Hides org. | |
| JDBCLoginModule | back to summary |
|---|---|
| public JDBCLoginModule() | |
| getConnection | back to summary |
|---|---|
| public Connection getConnection() throws Exception Implements abstract org. Get a connection from the DriverManager
| |
| initialize | back to summary |
|---|---|
| public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) Overrides org. Implements javax. Init LoginModule. Called once by JAAS after new instance created. | |