JAAS LoginModule to retrieve user information from a database and authenticate the user.
This version uses plain old JDBC connections NOT Datasources.
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private String | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Connection | getConnection()
Implements abstract org. |
| public void | initialize(Subject subject, CallbackHandler callbackHandler, Map<K, V> sharedState, Map<K, V> options)
Overrides org. Implements javax. |
| 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 | |
| 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<K, V> sharedState, Map<K, V> options) Overrides org. Implements javax. Init LoginModule. Called once by JAAS after new instance created. | |