Enum Class TlsMode

Object
Enum<TlsMode>
com.zebra.sdk.comm.TlsMode
All Implemented Interfaces:
Serializable, Comparable<TlsMode>, Constable

public enum TlsMode extends Enum<TlsMode>
TLS modes supported by the SDK.

This enum defines how TLS certificate validation should be performed when establishing a secure connection.

  • Enum Constant Details

    • TRUST_ALL

      public static final TlsMode 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

      public static final TlsMode 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

      public static final TlsMode VALIDATE_WITH_TRUST_MANAGER
      TLS mode that validates certificates using configured TrustManager instances, such as those from the JVM default keystore.
  • Method Details

    • values

      public static TlsMode[] 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

      public static TlsMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null