public static class AccountState.DefaultWarning extends Object implements AccountState.Warning
Modifier and Type | Field and Description |
---|---|
private ZonedDateTime |
expiration
expiration.
|
private int |
loginsRemaining
number of logins remaining before the account locks.
|
Constructor and Description |
---|
DefaultWarning(ZonedDateTime exp,
int remaining)
Creates a new warning.
|
Modifier and Type | Method and Description |
---|---|
ZonedDateTime |
getExpiration()
Returns the expiration.
|
int |
getLoginsRemaining()
Returns the number of logins remaining until the account locks.
|
String |
toString() |
private final ZonedDateTime expiration
private final int loginsRemaining
public DefaultWarning(ZonedDateTime exp, int remaining)
exp
- date of expirationremaining
- number of loginspublic ZonedDateTime getExpiration()
AccountState.Warning
getExpiration
in interface AccountState.Warning
public int getLoginsRemaining()
AccountState.Warning
getLoginsRemaining
in interface AccountState.Warning
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.