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

public enum CertificateValidationPolicy extends Enum<CertificateValidationPolicy>
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 Constants
    Enum Constant
    Description
    Indicates 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 Type
    Method
    Description
    Retrieves the human-readable name for this certificate validation policy.
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • ALWAYS

      public static final CertificateValidationPolicy 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

      public static final CertificateValidationPolicy NEVER
      Indicates that the server should not attempt to validate the client certificate against the version in the corresponding user's entry.
    • IFPRESENT

      public static final CertificateValidationPolicy 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

      public static CertificateValidationPolicy[] 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

      public static CertificateValidationPolicy valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Retrieves the human-readable name for this certificate validation policy.
      Overrides:
      toString in class Enum<CertificateValidationPolicy>
      Returns:
      The human-readable name for this certificate validation policy.