Package org.conscrypt
Class Platform
java.lang.Object
org.conscrypt.Platform
Platform-specific methods for OpenJDK.
Uses reflection to implement Java 8 SSL features for backwards compatibility.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConscryptHostnameVerifierstatic Stringstatic StatsLogstatic Sourcestatic int[]getUids()static booleanisCTVerificationRequired(String hostname) Check if SCT verification is required for a given hostname.static booleanstatic booleanstatic booleanisSdkGreater(int sdk) static booleanstatic booleanstatic booleanreasonCTVerificationRequired(String hostname) static voidsetup(boolean deprecatedTlsV1, boolean enabledTlsV1)
-
Method Details
-
setup
public static void setup(boolean deprecatedTlsV1, boolean enabledTlsV1) -
getOriginalHostNameFromInetAddress
-
isCTVerificationRequired
Check if SCT verification is required for a given hostname. SCT Verification is enabled usingSecurityproperties. 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
-
getStatsLog
-
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)
-