Tabnine Logo
TLSCertificateTrust.trustManagerFactoryTrustAllCerts
Code IndexAdd Tabnine to your IDE (free)

How to use
trustManagerFactoryTrustAllCerts
method
in
com.ociweb.pronghorn.network.TLSCertificateTrust

Best Java code snippets using com.ociweb.pronghorn.network.TLSCertificateTrust.trustManagerFactoryTrustAllCerts (Showing top 3 results out of 315)

origin: com.ociweb/Ph-TLS-pureJava

private TLSService(KeyManagerFactory keyManagerFactory, TrustManagerFactory trustManagerFactory, boolean trustAll, SecureRandom secureRandom) {
  try {
    //protocol The SSL/TLS protocol to be used. Java 1.6 will only run with up to TLSv1 protocol. Java 1.7 or higher also supports TLSv1.1 and TLSv1.2 protocols.
    final String PROTOCOL    = "TLSv1.2";
    final String PROTOCOL1_3 = "TLSv1.3"; //check Java version and move up to this ASAP.
    this.protocols = new String[]{PROTOCOL}; //[SSLv2Hello, TLSv1, TLSv1.1, TLSv1.2]
    KeyManager[] keyManagers = keyManagerFactory != null ? keyManagerFactory.getKeyManagers() : null;
    TrustManager[] trustManagers = null;
    if (trustAll) {
      trustManagers = TLSCertificateTrust.trustManagerFactoryTrustAllCerts();
    }
    else if (trustManagerFactory != null) {
      trustManagers = trustManagerFactory.getTrustManagers();
    }
    context = SSLContext.getInstance(PROTOCOL);
    context.init(keyManagers, trustManagers, secureRandom);
  } catch (Exception e) {
    throw new RuntimeException(e);
  }
  //run once first to determine which cypher suites we will be using.
  createSSLEngineServer();
}
 
origin: com.ociweb/ph-tls-pure-java

private TLSService(KeyManagerFactory keyManagerFactory, TrustManagerFactory trustManagerFactory, boolean trustAll, SecureRandom secureRandom) {
  try {
    this.protocols = selectSupportedProtocols();		
    
    KeyManager[] keyManagers = keyManagerFactory != null ? keyManagerFactory.getKeyManagers() : null;
    TrustManager[] trustManagers = null;
    if (trustAll) {
      trustManagers = TLSCertificateTrust.trustManagerFactoryTrustAllCerts();
    } else if (trustManagerFactory != null) {
      trustManagers = trustManagerFactory.getTrustManagers();
    }
    context = SSLContext.getInstance(this.protocols[0]);
    context.init(keyManagers, trustManagers, secureRandom);
  } catch (Exception e) {
    throw new RuntimeException(e);
  }
  //run once first to determine which cypher suites we will be using.
  createSSLEngineServer();
}
origin: oci-pronghorn/Pronghorn

private TLSService(KeyManagerFactory keyManagerFactory, TrustManagerFactory trustManagerFactory, boolean trustAll, SecureRandom secureRandom) {
  try {
    this.protocols = selectSupportedProtocols();		
    
    KeyManager[] keyManagers = keyManagerFactory != null ? keyManagerFactory.getKeyManagers() : null;
    TrustManager[] trustManagers = null;
    if (trustAll) {
      trustManagers = TLSCertificateTrust.trustManagerFactoryTrustAllCerts();
    } else if (trustManagerFactory != null) {
      trustManagers = trustManagerFactory.getTrustManagers();
    }
    context = SSLContext.getInstance(this.protocols[0]);
    context.init(keyManagers, trustManagers, secureRandom);
  } catch (Exception e) {
    throw new RuntimeException(e);
  }
  //run once first to determine which cypher suites we will be using.
  createSSLEngineServer();
}
com.ociweb.pronghorn.networkTLSCertificateTrusttrustManagerFactoryTrustAllCerts

Popular methods of TLSCertificateTrust

  • createKeyManagers
    Creates the key managers required to initiate the SSLContext, using a JKS keystore as an input.
  • createTrustManagers
    Creates the trust managers required to initiate the SSLContext, using a JKS keystore as an input.

Popular in Java

  • Creating JSON documents from java classes using gson
  • getExternalFilesDir (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • startActivity (Activity)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Collectors (java.util.stream)
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JComboBox (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now