public class PasswordExpiringControl extends AbstractControl implements ResponseControl
controlValue ::= secondsUntilExpiration OCTET STRING
Modifier and Type | Field and Description |
---|---|
private static int |
HASH_CODE_SEED
hash code seed.
|
static String |
OID
OID of this control.
|
private int |
timeBeforeExpiration
time in seconds until expiration.
|
logger
Constructor and Description |
---|
PasswordExpiringControl()
Default constructor.
|
PasswordExpiringControl(boolean critical)
Creates a new password expiring control.
|
PasswordExpiringControl(int time)
Creates a new password expiring control.
|
PasswordExpiringControl(int time,
boolean critical)
Creates a new password expiring control.
|
Modifier and Type | Method and Description |
---|---|
void |
decode(byte[] berValue)
Initializes this response control with the supplied BER encoded data.
|
boolean |
equals(Object o) |
int |
getTimeBeforeExpiration()
Returns the time in seconds until password expiration.
|
int |
hashCode()
Returns the hash code for this object.
|
void |
setTimeBeforeExpiration(int time)
Sets the time in seconds until password expiration.
|
String |
toString() |
getCriticality, getOID
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCriticality, getOID
public static final String OID
private static final int HASH_CODE_SEED
private int timeBeforeExpiration
public PasswordExpiringControl()
public PasswordExpiringControl(boolean critical)
critical
- whether this control is criticalpublic PasswordExpiringControl(int time)
time
- in seconds until expirationpublic PasswordExpiringControl(int time, boolean critical)
time
- in seconds until expirationcritical
- whether this control is criticalpublic int getTimeBeforeExpiration()
public void setTimeBeforeExpiration(int time)
time
- in seconds until expirationpublic boolean equals(Object o)
equals
in class AbstractControl
public int hashCode()
AbstractControl
hashCode
in class AbstractControl
public void decode(byte[] berValue)
ResponseControl
decode
in interface ResponseControl
berValue
- BER encoded response controlCopyright © 2003-2019 Virginia Tech. All Rights Reserved.