javax.net.ssl.SSLSocketFactory.getDefaultCipherSuites()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(131)

本文整理了Java中javax.net.ssl.SSLSocketFactory.getDefaultCipherSuites()方法的一些代码示例,展示了SSLSocketFactory.getDefaultCipherSuites()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SSLSocketFactory.getDefaultCipherSuites()方法的具体详情如下:
包路径:javax.net.ssl.SSLSocketFactory
类名称:SSLSocketFactory
方法名:getDefaultCipherSuites

SSLSocketFactory.getDefaultCipherSuites介绍

[英]Returns the names of the cipher suites that are enabled by default.
[中]返回默认情况下启用的密码套件的名称。

代码示例

代码示例来源:origin: square/okhttp

@Override public String[] getDefaultCipherSuites() {
 return delegate.getDefaultCipherSuites();
}

代码示例来源:origin: looly/hutool

@Override
public String[] getDefaultCipherSuites() {
  return base.getDefaultCipherSuites();
}

代码示例来源:origin: pentaho/pentaho-kettle

@Override
public String[] getDefaultCipherSuites() {
 return factory.getDefaultCipherSuites();
}

代码示例来源:origin: looly/hutool

@Override
public String[] getDefaultCipherSuites() {
  return base.getDefaultCipherSuites();
}

代码示例来源:origin: apache/ignite

/** {@inheritDoc} */
@Override public String[] getDefaultCipherSuites() {
  return delegate.getDefaultCipherSuites();
}

代码示例来源:origin: yanzhenjie/NoHttp

@Override
public String[] getDefaultCipherSuites() {
  return delegate.getDefaultCipherSuites();
}

代码示例来源:origin: apache/nifi

@Override
public String[] getDefaultCipherSuites() {
  return sslSocketFactory.getDefaultCipherSuites();
}

代码示例来源:origin: wildfly/wildfly

public String[] getDefaultCipherSuites() {
  return delegate.getDefaultCipherSuites();
}

代码示例来源:origin: org.postgresql/postgresql

public String[] getDefaultCipherSuites() {
 return _factory.getDefaultCipherSuites();
}

代码示例来源:origin: apache/nifi

@Override
public String[] getDefaultCipherSuites() {
  return delegate.getDefaultCipherSuites();
}

代码示例来源:origin: cloudfoundry/uaa

@Override
public String[] getDefaultCipherSuites() {
  return delegate.getDefaultCipherSuites();
}

代码示例来源:origin: postgresql/postgresql

public String[] getDefaultCipherSuites() {
  return _factory.getDefaultCipherSuites();
}

代码示例来源:origin: jeremylong/DependencyCheck

/**
 * Returns the default cipher suites.
 *
 * @return the default cipher suites
 */
@Override
public String[] getDefaultCipherSuites() {
  return sslCtxt.getSocketFactory().getDefaultCipherSuites();
}

代码示例来源:origin: knowm/XChange

@Override
public String[] getDefaultCipherSuites() {
 return getDefaultFactory().getDefaultCipherSuites();
}

代码示例来源:origin: SonarSource/sonarqube

@Test
public void trustAllCerts() throws Exception {
 HttpsURLConnection connection1 = newHttpsConnection();
 HttpsTrust.INSTANCE.trust(connection1);
 assertThat(connection1.getSSLSocketFactory()).isNotNull();
 assertThat(connection1.getSSLSocketFactory().getDefaultCipherSuites()).isNotEmpty();
}

代码示例来源:origin: stackoverflow.com

return delegate.getDefaultCipherSuites();

代码示例来源:origin: stackoverflow.com

return delegate.getDefaultCipherSuites();

代码示例来源:origin: stackoverflow.com

return delegate.getDefaultCipherSuites();

代码示例来源:origin: camunda/camunda-bpm-platform

@Override
public synchronized String[] getDefaultCipherSuites() {
return adapteeFactory.getDefaultCipherSuites();
}

代码示例来源:origin: mulesoft/mule

@Test
public void defaultProtocol() throws Exception {
 TlsConfiguration tlsConfiguration = new TlsConfiguration(DEFAULT_KEYSTORE);
 tlsConfiguration.initialise(true, JSSE_NAMESPACE);
 SSLSocketFactory socketFactory = tlsConfiguration.getSocketFactory();
 SSLServerSocketFactory serverSocketFactory = tlsConfiguration.getServerSocketFactory();
 SSLContext sslContext = SSLContext.getInstance(DEFAULT_SSL_TYPE);
 sslContext.init(null, null, null);
 assertThat(socketFactory.getDefaultCipherSuites(),
       arrayContainingInAnyOrder(sslContext.getSocketFactory().getDefaultCipherSuites()));
}

相关文章