Enum Class CertificateTrustStrategy

java.lang.Object
java.lang.Enum<CertificateTrustStrategy>
com.atlassian.httpclient.api.factory.CertificateTrustStrategy
All Implemented Interfaces:
Serializable, Comparable<CertificateTrustStrategy>, Constable

public enum CertificateTrustStrategy extends Enum<CertificateTrustStrategy>
Contains certificate trust strategy options when configuring the HTTP client.

A strategy can determine the trustworthiness of certificates without consulting the trust manager configured in the actual SSL context.

Since:
3.1.0, 4.1.0
  • Enum Constant Details

    • NONE

      public static final CertificateTrustStrategy NONE
      No trust strategy. This means full certificate verification is required.
    • SELF_SIGNED

      public static final CertificateTrustStrategy SELF_SIGNED
      A trust strategy that accepts self-signed certificates as trusted.
    • ALL

      public static final CertificateTrustStrategy ALL
      A trust strategy that accepts all certificates as trusted. This means full certificate verification is skipped.
  • Method Details

    • values

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