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

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

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

origin: io.servicecomb/foundation-ssl

public static SSLOption buildFromYaml(String tag) {
 return buildFromYaml(tag, null);
}
origin: io.servicecomb/service-registry

 protected void buildSecureClientOptions(HttpClientOptions httpClientOptions) {
  SSLOptionFactory factory =
    SSLOptionFactory.createSSLOptionFactory(SSL_KEY, null);
  SSLOption sslOption;
  if (factory == null) {
   sslOption = SSLOption.buildFromYaml(SSL_KEY);
  } else {
   sslOption = factory.createSSLOption();
  }
  SSLCustom sslCustom = SSLCustom.createSSLCustom(sslOption.getSslCustomClass());
  VertxTLSBuilder.buildHttpClientOptions(sslOption, sslCustom, httpClientOptions);
 }
}
origin: io.servicecomb/foundation-vertx

SSLOption sslOption;
if (factory == null) {
 sslOption = SSLOption.buildFromYaml(sslKey);
} else {
 sslOption = factory.createSSLOption();
origin: io.servicecomb/transport-rest-client

private HttpClientOptions createHttpClientOptions() {
 HttpClientOptions httpClientOptions = new HttpClientOptions();
 httpClientOptions.setMaxPoolSize(TransportClientConfig.getConnectionMaxPoolSize());
 httpClientOptions.setIdleTimeout(TransportClientConfig.getConnectionIdleTimeoutInSeconds());
 httpClientOptions.setKeepAlive(TransportClientConfig.getConnectionKeepAlive());
 if (this.sslEnabled) {
  SSLOptionFactory factory =
    SSLOptionFactory.createSSLOptionFactory(SSL_KEY,
      null);
  SSLOption sslOption;
  if (factory == null) {
   sslOption = SSLOption.buildFromYaml(SSL_KEY);
  } else {
   sslOption = factory.createSSLOption();
  }
  SSLCustom sslCustom = SSLCustom.createSSLCustom(sslOption.getSslCustomClass());
  VertxTLSBuilder.buildHttpClientOptions(sslOption, sslCustom, httpClientOptions);
 }
 return httpClientOptions;
}
origin: io.servicecomb/transport-rest-vertx

 private HttpServerOptions createDefaultHttpServerOptions() {
  HttpServerOptions serverOptions = new HttpServerOptions();
  serverOptions.setAcceptBacklog(ACCEPT_BACKLOG);
  serverOptions.setSendBufferSize(SEND_BUFFER_SIZE);
  serverOptions.setReceiveBufferSize(RECEIVE_BUFFER_SIZE);
  serverOptions.setUsePooledBuffers(true);
  serverOptions.setIdleTimeout(TransportConfig.getConnectionIdleTimeoutInSeconds());

  if (endpointObject.isSslEnabled()) {
   SSLOptionFactory factory =
     SSLOptionFactory.createSSLOptionFactory(SSL_KEY, null);
   SSLOption sslOption;
   if (factory == null) {
    sslOption = SSLOption.buildFromYaml(SSL_KEY);
   } else {
    sslOption = factory.createSSLOption();
   }
   SSLCustom sslCustom = SSLCustom.createSSLCustom(sslOption.getSslCustomClass());
   VertxTLSBuilder.buildNetServerOptions(sslOption, sslCustom, serverOptions);
  }

  return serverOptions;
 }
}
io.servicecomb.foundation.sslSSLOptionbuildFromYaml

Popular methods of SSLOption

  • getSslCustomClass
  • getCiphers
  • getCrl
  • getKeyStore
  • 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
  • runOnUiThread (Activity)
  • getContentResolver (Context)
  • findViewById (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Reference (javax.naming)
  • Best IntelliJ 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