类 ExportControlled


  • public class ExportControlled
    extends Object
    Holds functionality that falls under export-control regulations.
    • 方法详细资料

      • enabled

        public static boolean enabled()
      • checkValidProtocols

        public static void checkValidProtocols​(List<String> protocols)
      • getSSLContext

        public static SSLContext getSSLContext​(String clientCertificateKeyStoreUrl,
                                               String clientCertificateKeyStoreType,
                                               String clientCertificateKeyStorePassword,
                                               String trustCertificateKeyStoreUrl,
                                               String trustCertificateKeyStoreType,
                                               String trustCertificateKeyStorePassword,
                                               boolean fallbackToDefaultTrustStore,
                                               boolean verifyServerCert,
                                               String hostName,
                                               ExceptionInterceptor exceptionInterceptor)
                                        throws SSLParamsException
        Configure the SSLContext based on the supplier property set.
        参数:
        clientCertificateKeyStoreUrl - clientCertificateKeyStoreUrl
        clientCertificateKeyStoreType - clientCertificateKeyStoreType
        clientCertificateKeyStorePassword - clientCertificateKeyStorePassword
        trustCertificateKeyStoreUrl - trustCertificateKeyStoreUrl
        trustCertificateKeyStoreType - trustCertificateKeyStoreType
        trustCertificateKeyStorePassword - trustCertificateKeyStorePassword
        fallbackToDefaultTrustStore - fallbackToDefaultTrustStore
        verifyServerCert - verifyServerCert
        hostName - host name
        exceptionInterceptor - exception interceptor
        返回:
        SSLContext
        抛出:
        SSLParamsException - if an error occurs
      • isSSLEstablished

        public static boolean isSSLEstablished​(Socket socket)