Tabnine Logo
SSLOption.getKeyStore
Code IndexAdd Tabnine to your IDE (free)

How to use
getKeyStore
method
in
io.servicecomb.foundation.ssl.SSLOption

Best Java code snippets using io.servicecomb.foundation.ssl.SSLOption.getKeyStore (Showing top 3 results out of 315)

origin: io.servicecomb/foundation-ssl

public static SSLContext createSSLContext(SSLOption option, SSLCustom custom) {
 try {
  String keyStoreName = custom.getFullPath(option.getKeyStore());
  KeyManager[] keymanager;
  if (keyStoreName != null && new File(keyStoreName).exists()) {
origin: io.servicecomb/foundation-vertx

private static TCPSSLOptions buildTCPSSLOptions(SSLOption sslOption, SSLCustom sslCustom,
  TCPSSLOptions httpClientOptions) {
 httpClientOptions.setSsl(true);
 if (isFileExists(sslCustom.getFullPath(sslOption.getKeyStore()))) {
  if (STORE_PKCS12.equalsIgnoreCase(sslOption.getKeyStoreType())) {
   PfxOptions keyPfxOptions = new PfxOptions();
   keyPfxOptions.setPath(sslCustom.getFullPath(sslOption.getKeyStore()));
   keyPfxOptions.setPassword(new String(sslCustom.decode(sslOption.getKeyStoreValue().toCharArray())));
   httpClientOptions.setPfxKeyCertOptions(keyPfxOptions);
  } else if (STORE_JKS.equalsIgnoreCase(sslOption.getKeyStoreType())) {
   JksOptions keyJksOptions = new JksOptions();
   keyJksOptions.setPath(sslCustom.getFullPath(sslOption.getKeyStore()));
   keyJksOptions.setPassword(new String(sslCustom.decode(sslOption.getKeyStoreValue().toCharArray())));
   httpClientOptions.setKeyStoreOptions(keyJksOptions);
origin: io.servicecomb/foundation-ssl

  "ssl.trustStoreValue");
option.keyStore =
  getStringProperty(configSource, DEFAULT_OPTION.getKeyStore(), "ssl." + tag + ".keyStore", "ssl.keyStore");
option.keyStoreType =
  getStringProperty(configSource,
io.servicecomb.foundation.sslSSLOptiongetKeyStore

Popular methods of SSLOption

  • buildFromYaml
  • getSslCustomClass
  • getCiphers
  • getCrl
  • getKeyStoreType
  • getKeyStoreValue
  • getProtocols
  • getTrustStore
  • getTrustStoreType
  • getTrustStoreValue
  • isAuthPeer
  • isCheckCNHost
  • isAuthPeer,
  • isCheckCNHost,
  • <init>,
  • fromProperty,
  • getBooleanProperty,
  • getCheckCNWhiteFile,
  • getStorePath,
  • getStringProperty,
  • ignore

Popular in Java

  • Start an intent from android
  • compareTo (BigDecimal)
  • runOnUiThread (Activity)
  • setContentView (Activity)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • BoxLayout (javax.swing)
  • JList (javax.swing)
  • Top Vim plugins
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