| | |
| | | * information: "Portions Copyright [year] [name of copyright owner]". |
| | | * |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2015 ForgeRock AS. |
| | | * Portions Copyright 2011-2016 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.controls; |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | |
| | | public class PasswordPolicyResponseControl |
| | | extends Control |
| | | { |
| | | /** |
| | | * ControlDecoder implementation to decode this control from a ByteString. |
| | | */ |
| | | /** ControlDecoder implementation to decode this control from a ByteString. */ |
| | | private static final class Decoder |
| | | implements ControlDecoder<PasswordPolicyResponseControl> |
| | | { |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public PasswordPolicyResponseControl decode(boolean isCritical, |
| | | ByteString value) |
| | | throws DirectoryException |
| | |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public String getOID() |
| | | { |
| | | return OID_ACCOUNT_USABLE_CONTROL; |
| | |
| | | |
| | | } |
| | | |
| | | /** |
| | | * The Control Decoder that can be used to decode this control. |
| | | */ |
| | | /** The Control Decoder that can be used to decode this control. */ |
| | | public static final ControlDecoder<PasswordPolicyResponseControl> DECODER = |
| | | new Decoder(); |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * The BER type value for the warning element of the control value. |
| | | */ |
| | | /** The BER type value for the warning element of the control value. */ |
| | | public static final byte TYPE_WARNING_ELEMENT = (byte) 0xA0; |
| | | |
| | | |
| | | |
| | | /** |
| | | * The BER type value for the error element of the control value. |
| | | */ |
| | | /** The BER type value for the error element of the control value. */ |
| | | public static final byte TYPE_ERROR_ELEMENT = (byte) 0x81; |
| | | |
| | | |
| | |
| | | return errorType; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Appends a string representation of this password policy response control to |
| | | * the provided buffer. |
| | | * |
| | | * @param buffer The buffer to which the information should be appended. |
| | | */ |
| | | @Override |
| | | public void toString(StringBuilder buffer) |
| | | { |