Package com.zebra.sdk.comm
Enum Class TlsMode
- All Implemented Interfaces:
Serializable,Comparable<TlsMode>,Constable
TLS modes supported by the SDK.
This enum defines how TLS certificate validation should be performed when establishing a secure connection.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTLS mode that bypasses certificate validation and accepts all certificates without verification.TLS mode that validates certificates using a CA certificate loaded from an external file (CRT, CER, or PEM).TLS mode that validates certificates using configuredTrustManagerinstances, such as those from the JVM default keystore. -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
TRUST_ALL
TLS mode that bypasses certificate validation and accepts all certificates without verification. This mode is typically used for testing and is not recommended for production environments. -
VALIDATE_WITH_CERT_FILE
TLS mode that validates certificates using a CA certificate loaded from an external file (CRT, CER, or PEM). -
VALIDATE_WITH_TRUST_MANAGER
TLS mode that validates certificates using configuredTrustManagerinstances, such as those from the JVM default keystore.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-