Interface IAuthenticatorConfig
-
- All Known Subinterfaces:
ISingleUserAuthenticatorConfig
- All Known Implementing Classes:
AuthenticatorDefaultConfig
,SingleUserAuthenticatorDefaultConfig
public interface IAuthenticatorConfig
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getFailDelayMillis()
Returns the time to wait after a failed login; useful to mitigate brute-force attacks.String
getFailureLoggingLevel()
Returns the logging level for login failures (wrong credentials).char[]
getPassword(String username)
Returns the expected password, or password hash, for the provided username, depending on the value returned bygetPasswordHashAlgorithm()
.String
getPasswordHashAlgorithm()
Returns the password hashing algoritm (SHA-1, SHA-256, etc.), or null when the password is returned as it is.String
getRealm()
Returns the realm name, which will be displayed in the login interface.
-
-
-
Method Detail
-
getRealm
String getRealm()
Returns the realm name, which will be displayed in the login interface.- Returns:
- the realm name.
-
getPassword
@Nullable char[] getPassword(String username)
Returns the expected password, or password hash, for the provided username, depending on the value returned bygetPasswordHashAlgorithm()
.- Parameters:
username
- the username of which retrieve the password.- Returns:
- the password or password hash, or null if the username doesn't exist.
-
getPasswordHashAlgorithm
@Nullable String getPasswordHashAlgorithm()
Returns the password hashing algoritm (SHA-1, SHA-256, etc.), or null when the password is returned as it is.- Returns:
- the password hashing algorithm, or null if no hash is applied.
-
getFailDelayMillis
int getFailDelayMillis()
Returns the time to wait after a failed login; useful to mitigate brute-force attacks.- Returns:
- the delay in milliseconds.
-
getFailureLoggingLevel
String getFailureLoggingLevel()
Returns the logging level for login failures (wrong credentials).- Returns:
- the level name (INFO, WARNING, etc.).
-
-