- java.lang.Object
-
- java.lang.Enum<SSLConfigException.Types>
-
- io.javalin.community.ssl.SSLConfigException.Types
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SSLConfigException.Types>
- Enclosing class:
- SSLConfigException
public static enum SSLConfigException.Types extends java.lang.Enum<SSLConfigException.Types>
Types of errors that can occur when configuring SSL.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INVALID_HOSTINVALID_HTTP3_PORTINVALID_INSECURE_PORTINVALID_SSL_PORTMISSING_CERT_AND_KEY_FILEMULTIPLE_IDENTITY_LOADING_OPTIONS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMessage()static SSLConfigException.TypesvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SSLConfigException.Types[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INVALID_HOST
public static final SSLConfigException.Types INVALID_HOST
-
INVALID_SSL_PORT
public static final SSLConfigException.Types INVALID_SSL_PORT
-
INVALID_INSECURE_PORT
public static final SSLConfigException.Types INVALID_INSECURE_PORT
-
INVALID_HTTP3_PORT
public static final SSLConfigException.Types INVALID_HTTP3_PORT
-
MISSING_CERT_AND_KEY_FILE
public static final SSLConfigException.Types MISSING_CERT_AND_KEY_FILE
-
MULTIPLE_IDENTITY_LOADING_OPTIONS
public static final SSLConfigException.Types MULTIPLE_IDENTITY_LOADING_OPTIONS
-
-
Method Detail
-
values
public static SSLConfigException.Types[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SSLConfigException.Types c : SSLConfigException.Types.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SSLConfigException.Types valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getMessage
public java.lang.String getMessage()
-
-