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

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

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

origin: io.servicecomb/foundation-ssl

public static SSLSocketFactory createSSLSocketFactory(SSLOption option, SSLCustom custom) {
 SSLContext context = createSSLContext(option, custom);
 SSLSocketFactory factory = context.getSocketFactory();
 String[] supported = factory.getSupportedCipherSuites();
 String[] eanbled = option.getCiphers().split(",");
 return new SSLSocketFactoryExt(factory, getEnabledCiphers(supported, eanbled),
   option.getProtocols().split(","));
}
origin: io.servicecomb/foundation-ssl

public static SSLEngine createSSLEngine(SSLOption option, SSLCustom custom) {
 SSLContext context = createSSLContext(option, custom);
 SSLEngine engine =
   context.createSSLEngine();
 engine.setEnabledProtocols(option.getProtocols().split(","));
 String[] supported = engine.getSupportedCipherSuites();
 String[] eanbled = option.getCiphers().split(",");
 engine.setEnabledCipherSuites(getEnabledCiphers(supported, eanbled));
 engine.setNeedClientAuth(option.isAuthPeer());
 return engine;
}
origin: io.servicecomb/foundation-ssl

public static SSLEngine createSSLEngine(SSLOption option, SSLCustom custom, String peerHost, int peerPort) {
 SSLContext context = createSSLContext(option, custom);
 SSLEngine engine =
   context.createSSLEngine(peerHost, peerPort);
 engine.setEnabledProtocols(option.getProtocols().split(","));
 String[] supported = engine.getSupportedCipherSuites();
 String[] eanbled = option.getCiphers().split(",");
 engine.setEnabledCipherSuites(getEnabledCiphers(supported, eanbled));
 engine.setNeedClientAuth(option.isAuthPeer());
 return engine;
}
origin: io.servicecomb/foundation-ssl

public static SSLSocket createSSLSocket(SSLOption option, SSLCustom custom) {
 try {
  SSLContext context = createSSLContext(option, custom);
  SSLSocketFactory facroty = context.getSocketFactory();
  SSLSocket socket =
    (SSLSocket) facroty.createSocket();
  socket.setEnabledProtocols(option.getProtocols().split(","));
  String[] supported = socket.getSupportedCipherSuites();
  String[] eanbled = option.getCiphers().split(",");
  socket.setEnabledCipherSuites(getEnabledCiphers(supported, eanbled));
  return socket;
 } catch (UnknownHostException e) {
  throw new IllegalArgumentException("unkown host");
 } catch (IOException e) {
  throw new IllegalArgumentException("unable create socket");
 }
}
origin: io.servicecomb/foundation-ssl

public static SSLServerSocket createSSLServerSocket(SSLOption option,
  SSLCustom custom) {
 try {
  SSLContext context = createSSLContext(option, custom);
  SSLServerSocketFactory factory = context.getServerSocketFactory();
  SSLServerSocket socket =
    (SSLServerSocket) factory.createServerSocket();
  socket.setEnabledProtocols(option.getProtocols().split(","));
  String[] supported = socket.getSupportedCipherSuites();
  String[] eanbled = option.getCiphers().split(",");
  socket.setEnabledCipherSuites(getEnabledCiphers(supported, eanbled));
  socket.setNeedClientAuth(option.isAuthPeer());
  return socket;
 } catch (UnknownHostException e) {
  throw new IllegalArgumentException("unkown host");
 } catch (IOException e) {
  throw new IllegalArgumentException("unable create socket");
 }
}
origin: io.servicecomb/foundation-vertx

 httpClientOptions.addEnabledSecureTransportProtocol(protocol);
for (String cipher : SSLManager.getEnalbedCiphers(sslOption.getCiphers())) {
 httpClientOptions.addEnabledCipherSuite(cipher);
origin: io.servicecomb/foundation-ssl

    "ssl.protocols");
option.ciphers =
  getStringProperty(configSource, DEFAULT_OPTION.getCiphers(), "ssl." + tag + ".ciphers", "ssl.ciphers");
option.authPeer =
  getBooleanProperty(configSource, DEFAULT_OPTION.isAuthPeer(), "ssl." + tag + ".authPeer", "ssl.authPeer");
    "ssl.checkCN.white");
option.checkCNWhiteFile = getStringProperty(configSource,
  DEFAULT_OPTION.getCiphers(),
  "ssl." + tag + ".checkCN.white.file",
  "ssl.checkCN.white.file");
io.servicecomb.foundation.sslSSLOptiongetCiphers

Popular methods of SSLOption

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • getExternalFilesDir (Context)
  • onCreateOptionsMenu (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top plugins for Android Studio
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