|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.types.Control
org.opends.server.controls.PasswordPolicyResponseControl
public class PasswordPolicyResponseControl
This class implements the password policy response control defined in draft-behera-ldap-password-policy. The value may have zero, one, or two elements, which may include flags to indicate a warning and/or an error.
Field Summary | |
---|---|
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 Summary | |
---|---|
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(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. |
|
PasswordPolicyResponseControl(java.lang.String oid,
boolean isCritical,
PasswordPolicyWarningType warningType,
int warningValue,
PasswordPolicyErrorType errorType)
Creates a new instance of the password policy request control with the provided information. |
Method Summary | |
---|---|
static PasswordPolicyResponseControl |
decodeControl(Control control)
Creates a new password policy response control from the contents of the provided control. |
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. |
java.lang.String |
toString()
Retrieves a string representation of this password policy response control. |
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this password policy response control to the provided buffer. |
Methods inherited from class org.opends.server.types.Control |
---|
getOID, getValue, hasValue, isCritical, setCritical, setOID, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final byte TYPE_WARNING_ELEMENT
public static final byte TYPE_ERROR_ELEMENT
Constructor Detail |
---|
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(java.lang.String oid, boolean isCritical, PasswordPolicyWarningType warningType, int warningValue, PasswordPolicyErrorType errorType)
oid
- The OID to use for this control.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.Method Detail |
---|
public static PasswordPolicyResponseControl decodeControl(Control control) throws LDAPException
control
- The generic control containing the information to use to
create this password policy response control.
LDAPException
- If this control cannot be decoded as a valid
password policy response control.public PasswordPolicyWarningType getWarningType()
null
if there is no warning type.public int getWarningValue()
public PasswordPolicyErrorType getErrorType()
null
if there is no error type.public java.lang.String toString()
toString
in class Control
public void toString(java.lang.StringBuilder buffer)
toString
in class Control
buffer
- The buffer to which the information should be appended.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |