public class PasswordPolicyResponseControl extends Control
Modifier and Type | Field and Description |
---|---|
static ControlDecoder<PasswordPolicyResponseControl> |
DECODER
The Control Decoder that can be used to decode this control.
|
static byte |
TYPE_ERROR_ELEMENT
The BER type value for the error element of the control value.
|
static byte |
TYPE_WARNING_ELEMENT
The BER type value for the warning element of the control value.
|
Constructor and Description |
---|
PasswordPolicyResponseControl()
Creates a new instance of the password policy response control with the
default OID and criticality, and without either a warning or an error flag.
|
PasswordPolicyResponseControl(boolean isCritical,
PasswordPolicyWarningType warningType,
int warningValue,
PasswordPolicyErrorType errorType)
Creates a new instance of the password policy request control with the
provided information.
|
PasswordPolicyResponseControl(PasswordPolicyWarningType warningType,
int warningValue,
PasswordPolicyErrorType errorType)
Creates a new instance of this password policy response control with the
default OID and criticality, and with the provided warning and/or error
flag information.
|
Modifier and Type | Method and Description |
---|---|
PasswordPolicyErrorType |
getErrorType()
Retrieves the password policy error type contained in this control.
|
PasswordPolicyWarningType |
getWarningType()
Retrieves the password policy warning type contained in this control.
|
int |
getWarningValue()
Retrieves the password policy warning value for this control.
|
void |
toString(StringBuilder buffer)
Appends a string representation of this control to the provided
buffer.
|
protected 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<PasswordPolicyResponseControl> DECODER
public static final byte TYPE_WARNING_ELEMENT
public static final byte TYPE_ERROR_ELEMENT
public PasswordPolicyResponseControl()
public PasswordPolicyResponseControl(PasswordPolicyWarningType warningType, int warningValue, PasswordPolicyErrorType errorType)
warningType
- The warning type to use for this password policy
response control, or null
if there
should not be a warning flag.warningValue
- The warning value to use for this password policy
response control, if applicable.errorType
- The error type to use for this password policy
response control, or null
if there
should not be an error flag.public PasswordPolicyResponseControl(boolean isCritical, PasswordPolicyWarningType warningType, int warningValue, PasswordPolicyErrorType errorType)
isCritical
- Indicates whether support for this control should be
considered a critical part of the client processing.warningType
- The warning type to use for this password policy
response control, or null
if there
should not be a warning flag.warningValue
- The warning value to use for this password policy
response control, if applicable.errorType
- The error type to use for this password policy
response control, or null
if there
should not be an error flag.protected void writeValue(org.forgerock.opendj.io.Asn1Writer writer) throws IOException
writeValue
in class Control
writer
- The ASN.1 writer to use.IOException
- If a problem occurs while writing to the stream.public PasswordPolicyWarningType getWarningType()
null
if there is no warning type.public int getWarningValue()
public PasswordPolicyErrorType getErrorType()
null
if there is no error type.public void toString(StringBuilder buffer)
Control
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.