Package org.ldaptive.auth
Class AccountState.DefaultWarning
- java.lang.Object
-
- org.ldaptive.auth.AccountState.DefaultWarning
-
- All Implemented Interfaces:
AccountState.Warning
- Enclosing class:
- AccountState
public static class AccountState.DefaultWarning extends Object implements AccountState.Warning
Default warning implementation.
-
-
Field Summary
Fields Modifier and Type Field Description private ZonedDateTime
expiration
expiration.private int
loginsRemaining
number of logins remaining before the account locks.
-
Constructor Summary
Constructors Constructor Description DefaultWarning(ZonedDateTime exp, int remaining)
Creates a new warning.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZonedDateTime
getExpiration()
Returns the expiration.int
getLoginsRemaining()
Returns the number of logins remaining until the account locks.String
toString()
-
-
-
Field Detail
-
expiration
private final ZonedDateTime expiration
expiration.
-
loginsRemaining
private final int loginsRemaining
number of logins remaining before the account locks.
-
-
Constructor Detail
-
DefaultWarning
public DefaultWarning(ZonedDateTime exp, int remaining)
Creates a new warning.- Parameters:
exp
- date of expirationremaining
- number of logins
-
-
Method Detail
-
getExpiration
public ZonedDateTime getExpiration()
Description copied from interface:AccountState.Warning
Returns the expiration.- Specified by:
getExpiration
in interfaceAccountState.Warning
- Returns:
- expiration
-
getLoginsRemaining
public int getLoginsRemaining()
Description copied from interface:AccountState.Warning
Returns the number of logins remaining until the account locks.- Specified by:
getLoginsRemaining
in interfaceAccountState.Warning
- Returns:
- number of logins remaining
-
-