public final class AuthenticationChecker extends Object
Modifier and Type | Class | Description |
---|---|---|
static class |
AuthenticationChecker.AuthenticationError |
Type or errors for credential values.
|
Constructor | Description |
---|---|
AuthenticationChecker(AuthenticationRules parameters) |
Create a new AuthenticationChecker from rules.
|
Modifier and Type | Method | Description |
---|---|---|
Credentials |
check(String login,
String password) |
Check if provided login and password are valid against the given rules.
|
public AuthenticationChecker(AuthenticationRules parameters)
parameters
- List of rules to apply when authenticating, cannot be null.AssertionError
- if parameters is null.public Credentials check(String login, String password) throws CredentialException
login
- Login to check, null is allowed.password
- Password to check, provided in clear, null is allowed.CredentialException
- If the check fails.Copyright © 2017–2018. All rights reserved.