Enum SSLHostConfig.CertificateVerification
java.lang.Object
java.lang.Enum<SSLHostConfig.CertificateVerification>
org.apache.tomcat.util.net.SSLHostConfig.CertificateVerification
- All Implemented Interfaces:
Serializable, Comparable<SSLHostConfig.CertificateVerification>, java.lang.constant.Constable
- Enclosing class:
SSLHostConfig
public static enum SSLHostConfig.CertificateVerification
extends Enum<SSLHostConfig.CertificateVerification>
Certificate verification levels.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNo certificate verification.Optional verification.Optional verification without CA check.Required verification. -
Method Summary
Modifier and TypeMethodDescriptionfromString(String value) Creates a CertificateVerification from a string value.booleanReturns whether this verification level is optional.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
No certificate verification. -
OPTIONAL_NO_CA
Optional verification without CA check. -
OPTIONAL
Optional verification. -
REQUIRED
Required verification.
-
-
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
-
isOptional
public boolean isOptional()Returns whether this verification level is optional.- Returns:
trueif optional
-
fromString
Creates a CertificateVerification from a string value.- Parameters:
value- the string value- Returns:
- the corresponding CertificateVerification
-