- All Implemented Interfaces:
Serializable
,Comparable<CertManager.Mode>
- Enclosing class:
- CertManager
Mode determining how a
CertManager
behaves.-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic CertManager.Mode
Returns the enum constant of this type with the specified name.static CertManager.Mode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NORMAL
Normal operation. This is the default. -
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
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 asNORMAL
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 asSTAGED
,LOCAL
orNORMAL
. 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
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
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 nameNullPointerException
- if the argument is null
-