| | |
| | | int warningValue, |
| | | PasswordPolicyErrorType errorType) |
| | | { |
| | | |
| | | ArrayList<ASN1Element> elements = new ArrayList<ASN1Element>(2); |
| | | |
| | | if (warningType != null) |
| | |
| | | public static PasswordPolicyResponseControl decodeControl(Control control) |
| | | throws LDAPException |
| | | { |
| | | |
| | | |
| | | ASN1OctetString controlValue = control.getValue(); |
| | | if (controlValue == null) |
| | | { |
| | |
| | | */ |
| | | public PasswordPolicyWarningType getWarningType() |
| | | { |
| | | |
| | | return warningType; |
| | | } |
| | | |
| | |
| | | */ |
| | | public int getWarningValue() |
| | | { |
| | | |
| | | return warningValue; |
| | | } |
| | | |
| | |
| | | */ |
| | | public PasswordPolicyErrorType getErrorType() |
| | | { |
| | | |
| | | return errorType; |
| | | } |
| | | |
| | |
| | | */ |
| | | public String toString() |
| | | { |
| | | |
| | | StringBuilder buffer = new StringBuilder(); |
| | | toString(buffer); |
| | | return buffer.toString(); |
| | |
| | | */ |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | | |
| | | buffer.append("PasswordPolicyResponseControl("); |
| | | |
| | | if (warningType != null) |