| | |
| | | import org.opends.sdk.ByteString; |
| | | import org.opends.sdk.DN; |
| | | import org.opends.sdk.DecodeException; |
| | | import org.opends.sdk.LocalizableMessage; |
| | | import org.opends.sdk.asn1.ASN1; |
| | | import org.opends.sdk.asn1.ASN1Reader; |
| | | import org.opends.sdk.schema.Schema; |
| | | |
| | | import com.sun.opends.sdk.util.Message; |
| | | import com.sun.opends.sdk.util.StaticUtils; |
| | | import com.sun.opends.sdk.util.Validator; |
| | | |
| | |
| | | { |
| | | if (!isCritical) |
| | | { |
| | | Message message = ERR_PROXYAUTH2_CONTROL_NOT_CRITICAL.get(); |
| | | LocalizableMessage message = ERR_PROXYAUTH2_CONTROL_NOT_CRITICAL.get(); |
| | | throw DecodeException.error(message); |
| | | } |
| | | |
| | | if (value == null) |
| | | { |
| | | Message message = ERR_PROXYAUTH2_NO_CONTROL_VALUE.get(); |
| | | LocalizableMessage message = ERR_PROXYAUTH2_NO_CONTROL_VALUE.get(); |
| | | throw DecodeException.error(message); |
| | | } |
| | | |
| | |
| | | StaticUtils.DEBUG_LOG.throwing("ProxiedAuthV2Control.Decoder", |
| | | "decode", e); |
| | | |
| | | Message message = ERR_PROXYAUTH2_CANNOT_DECODE_VALUE |
| | | LocalizableMessage message = ERR_PROXYAUTH2_CANNOT_DECODE_VALUE |
| | | .get(getExceptionMessage(e)); |
| | | throw DecodeException.error(message, e); |
| | | } |