It instantiates and calls the basic User authentication scheme at runtime.
In 2.0, users can now be defined as database properties. If derby.database.propertiesOnly is set to true, then in this case, only users defined as database properties for the current database will be considered.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | authenticateUser(String
The user's name used to connect to JBMS system userName, String The user's password used to connect to JBMS system userPassword, String The database which the user wants to connect to. databaseName, Properties Additional jdbc connection info. info)Implements org. Authenticate the passed-in user's credentials. |
| public void | boot(boolean
True if the database should be created create, Properties Configuration properties properties)Overrides org. Implements org. Start this module. |
| public boolean | canSupport(Properties properties)
Implements org. Check if we should activate this authentication service. |
| private String | Returns: a digest of the password created the same way as the stored passwordthe user whose password to hash user, String the plaintext password password, String the password token that's stored in the database storedPassword)Hash a password using the same algorithm as we used to generate the stored password token. |
| BasicAuthenticationServiceImpl | back to summary |
|---|---|
| public BasicAuthenticationServiceImpl() | |
| authenticateUser | back to summary |
|---|---|
| public boolean authenticateUser(String userName, String userPassword, String databaseName, Properties info) throws SQLException Implements org. Authenticate the passed-in user's credentials.
| |
| boot | back to summary |
|---|---|
| public void boot(boolean create, Properties properties) throws StandardException Overrides org. Implements org. Doc from org. Start this module. In this case, nothing needs to be done.
| |
| canSupport | back to summary |
|---|---|
| public boolean canSupport(Properties properties) Implements org. Check if we should activate this authentication service.
| |
| hashPasswordUsingStoredAlgorithm | back to summary |
|---|---|
| private String hashPasswordUsingStoredAlgorithm(String user, String password, String storedPassword) throws StandardException Hash a password using the same algorithm as we used to generate the stored password token.
| |