Package org.opends.server.extensions
Enum Class CertificateValidationPolicy
java.lang.Object
java.lang.Enum<CertificateValidationPolicy>
org.opends.server.extensions.CertificateValidationPolicy
- All Implemented Interfaces:
Serializable
,Comparable<CertificateValidationPolicy>
,java.lang.constant.Constable
This class implements an enumeration that may be used to indicate if/how a client's certificate should be validated
against the corresponding user entry in the Directory Server.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIndicates that the server should always attempt to validate the client certificate against the version in the corresponding user's entry.Indicates that the server should attempt to validate the client certificate against the version in the corresponding user's entry if there are any certificates in that user's entry.Indicates that the server should not attempt to validate the client certificate against the version in the corresponding user's entry. -
Method Summary
Modifier and TypeMethodDescriptiontoString()
Retrieves the human-readable name for this certificate validation policy.static CertificateValidationPolicy
Returns the enum constant of this class with the specified name.static CertificateValidationPolicy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALWAYS
Indicates that the server should always attempt to validate the client certificate against the version in the corresponding user's entry. If no certificates exist in the user's entry, then the validation will fail. -
NEVER
Indicates that the server should not attempt to validate the client certificate against the version in the corresponding user's entry. -
IFPRESENT
Indicates that the server should attempt to validate the client certificate against the version in the corresponding user's entry if there are any certificates in that user's entry. If the user's entry does not contain any certificates, then no validation will be attempted.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
Retrieves the human-readable name for this certificate validation policy.- Overrides:
toString
in classEnum<CertificateValidationPolicy>
- Returns:
- The human-readable name for this certificate validation policy.
-