Package org.conscrypt

Class Platform

java.lang.Object
org.conscrypt.Platform

@Internal public final class Platform extends Object
Platform-specific methods for OpenJDK. Uses reflection to implement Java 8 SSL features for backwards compatibility.
  • Method Details

    • setup

      public static void setup(boolean deprecatedTlsV1, boolean enabledTlsV1)
    • getOriginalHostNameFromInetAddress

      public static String getOriginalHostNameFromInetAddress(InetAddress addr)
    • isCTVerificationRequired

      public static boolean isCTVerificationRequired(String hostname)
      Check if SCT verification is required for a given hostname. SCT Verification is enabled using Security properties. The "conscrypt.ct.enable" property must be true, as well as a per domain property. The reverse notation of the domain name, prefixed with "conscrypt.ct.enforce." is used as the property name. Basic globbing is also supported. For example, for the domain foo.bar.com, the following properties will be looked up, in order of precedence. - conscrypt.ct.enforce.com.bar.foo - conscrypt.ct.enforce.com.bar.* - conscrypt.ct.enforce.com.* - conscrypt.ct.enforce.*
    • reasonCTVerificationRequired

      public static CertificateTransparencyVerificationReason reasonCTVerificationRequired(String hostname)
    • getDefaultHostnameVerifier

      public static ConscryptHostnameVerifier getDefaultHostnameVerifier()
    • getStatsLog

      public static StatsLog getStatsLog()
    • getStatsSource

      public static Source getStatsSource()
    • getUids

      public static int[] getUids()
    • isJavaxCertificateSupported

      public static boolean isJavaxCertificateSupported()
    • isTlsV1Deprecated

      public static boolean isTlsV1Deprecated()
    • isTlsV1Filtered

      public static boolean isTlsV1Filtered()
    • isTlsV1Supported

      public static boolean isTlsV1Supported()
    • isPakeSupported

      public static boolean isPakeSupported()
    • isSdkGreater

      public static boolean isSdkGreater(int sdk)