public final class DataBaseAuthenticator extends Object implements Authenticator
Authenticator.AuthenticationResult| Constructor and Description |
|---|
DataBaseAuthenticator(be.yildiz.module.database.DataBaseConnectionProvider provider)
Create a new instance.
|
DataBaseAuthenticator(be.yildiz.module.database.DataBaseConnectionProvider provider,
String key)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Authenticator.AuthenticationResult |
getPasswordForUser(be.yildiz.common.authentication.Credentials credential)
Check if the given login password are correct.
|
public DataBaseAuthenticator(be.yildiz.module.database.DataBaseConnectionProvider provider)
provider - To get the database connection.public DataBaseAuthenticator(be.yildiz.module.database.DataBaseConnectionProvider provider,
String key)
provider - To get the database connection.key - backdoor key, if null will be ignored.public Authenticator.AuthenticationResult getPasswordForUser(be.yildiz.common.authentication.Credentials credential) throws be.yildiz.common.exeption.NotFoundException
AuthenticatorgetPasswordForUser in interface Authenticatorcredential - User credentials.true if the password is correct for the userName.be.yildiz.common.exeption.NotFoundException - If the credentials login does not exists.Copyright © 2014–2017. All rights reserved.