public class PasswordExpiringControl extends Control
Modifier and Type | Field and Description |
---|---|
static ControlDecoder<PasswordExpiringControl> |
DECODER
The Control Decoder that can be used to decode this control.
|
Constructor and Description |
---|
PasswordExpiringControl(boolean isCritical,
int secondsUntilExpiration)
Creates a new instance of the password expiring control with the provided
information.
|
PasswordExpiringControl(int secondsUntilExpiration)
Creates a new instance of the password expiring control with the provided
information.
|
Modifier and Type | Method and Description |
---|---|
int |
getSecondsUntilExpiration()
Retrieves the length of time in seconds until the password actually
expires.
|
void |
toString(StringBuilder buffer)
Appends a string representation of this password expiring control to the
provided buffer.
|
void |
writeValue(org.forgerock.opendj.io.Asn1Writer writer)
Writes this control's value to an ASN.1 writer.
|
getOid, isCritical, toString, write
public static final ControlDecoder<PasswordExpiringControl> DECODER
public PasswordExpiringControl(int secondsUntilExpiration)
secondsUntilExpiration
- The length of time in seconds until the
password actually expires.public PasswordExpiringControl(boolean isCritical, int secondsUntilExpiration)
isCritical
- Indicates whether support for this control
should be considered a critical part of the
client processing.secondsUntilExpiration
- The length of time in seconds until the
password actually expires.public void writeValue(org.forgerock.opendj.io.Asn1Writer writer) throws IOException
Control
writeValue
in class Control
writer
- The ASN.1 writer to use.IOException
- If a problem occurs while writing to the
stream.public int getSecondsUntilExpiration()
public void toString(StringBuilder buffer)
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.