Enum CertManager.Mode

java.lang.Object
java.lang.Enum<CertManager.Mode>
org.bzdev.ejws.CertManager.Mode
All Implemented Interfaces:
Serializable, Comparable<CertManager.Mode>
Enclosing class:
CertManager

public static enum CertManager.Mode extends Enum<CertManager.Mode>
Mode determining how a CertManager behaves.
  • Enum Constant Details

    • NORMAL

      public static final CertManager.Mode NORMAL
      Normal operation. This is the default.
    • LOCAL

      public static final CertManager.Mode LOCAL
      Local mode. Creating a certificate involves both local operations and ones that require the use of a certificate authority. This mode performs the local operations, prints a description of any remote operations to a log file, and provides a self-signed certificate for further testing.
    • STAGED

      public static final CertManager.Mode STAGED
      Staging mode. Some providers can create non-functional test certificates because their certificate authority (for example, Lets Encrypt) places limits on the number of actual certificates that can be issued per unit time. If a certificate authority does not have such an option, this mode should behave the same as NORMAL mode.
    • TEST

      public static final CertManager.Mode TEST
      Test mode. In this case, a certificate may not be created. The mode TEST should be used only for initial testing where one might want to check for logic errors or a failure to catch various configuration errors. Providers may optionally handle this mode in the same way as STAGED, LOCAL or NORMAL. A server may not work when this mode is used, but one can perform a standalone test (see the program CMTest.java in the tests/ejws directory of this library's source code and source code for the Docker image wtzbzdev/ejwsacme for examples).

      Note: the default provider treats all modes the same as NORMAL.

  • Method Details

    • values

      public static CertManager.Mode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static CertManager.Mode valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null