本文整理了Java中javax.net.ssl.SSLServerSocket.getEnabledProtocols()
方法的一些代码示例,展示了SSLServerSocket.getEnabledProtocols()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SSLServerSocket.getEnabledProtocols()
方法的具体详情如下:
包路径:javax.net.ssl.SSLServerSocket
类名称:SSLServerSocket
方法名:getEnabledProtocols
[英]Returns the names of the enabled protocols to be used for new connections.
[中]返回用于新连接的已启用协议的名称。
代码示例来源:origin: wildfly/wildfly
public String[] getEnabledProtocols() {
return delegate.getEnabledProtocols();
}
代码示例来源:origin: apache/hive
for (String protocol : sslServerSocket.getEnabledProtocols()) {
if (sslVersionBlacklistLocal.contains(protocol.toLowerCase())) {
LOG.debug("Disabling SSL Protocol: " + protocol);
+ Arrays.toString(sslServerSocket.getEnabledProtocols()));
代码示例来源:origin: apache/hive
for (String protocol : sslServerSocket.getEnabledProtocols()) {
if (sslVersionBlacklistLocal.contains(protocol.toLowerCase())) {
LOG.debug("Disabling SSL Protocol: " + protocol);
+ Arrays.toString(sslServerSocket.getEnabledProtocols()));
代码示例来源:origin: com.h2database/h2
disableSSL(secureSocket.getEnabledProtocols()));
if (SysProperties.ENABLE_ANONYMOUS_TLS) {
String[] list = enableAnonymous(
代码示例来源:origin: camunda/camunda-bpm-platform
public String[] getDefaultProtocols() {
return delegate.getEnabledProtocols();
}
代码示例来源:origin: apache/accumulo
Arrays.asList(sslServerSock.getEnabledProtocols()));
+ Arrays.toString(sslServerSock.getEnabledProtocols()) + ", allowed protocols: "
+ Arrays.toString(protocols));
代码示例来源:origin: i2p/i2p.i2p
/**
* Select protocols and cipher suites to be used
* based on configured inclusion and exclusion lists
* as well as enabled and supported protocols and cipher suites.
*
* Adapted from Jetty SslContextFactory.java
*
* @since 0.9.16
*/
public static void setProtocolsAndCiphers(SSLServerSocket socket) {
String[] p = selectProtocols(socket.getEnabledProtocols(),
socket.getSupportedProtocols());
for (int i = 0; i < p.length; i++) {
// if we left SSLv3 in there, we don't support TLS,
// so we should't remove the SSL ciphers
if (p[i].equals("SSLv3"))
return;
}
socket.setEnabledProtocols(p);
socket.setEnabledCipherSuites(selectCipherSuites(socket.getEnabledCipherSuites(),
socket.getSupportedCipherSuites()));
}
代码示例来源:origin: tony19/logback-android
public String[] getDefaultProtocols() {
return delegate.getEnabledProtocols();
}
代码示例来源:origin: org.wildfly.security/wildfly-elytron
public String[] getEnabledProtocols() {
return delegate.getEnabledProtocols();
}
代码示例来源:origin: mulesoft/mule
@Test
public void testProtocolsFromConfigFile() throws Exception {
File configFile = createDefaultConfigFile();
try {
TlsConfiguration tlsConfiguration = new TlsConfiguration(DEFAULT_KEYSTORE);
tlsConfiguration.initialise(true, JSSE_NAMESPACE);
SSLSocket socket = (SSLSocket) tlsConfiguration.getSocketFactory().createSocket();
SSLServerSocket serverSocket = (SSLServerSocket) tlsConfiguration.getServerSocketFactory().createServerSocket();
assertArrayEquals(new String[] {SUPPORTED_PROTOCOL}, socket.getEnabledProtocols());
assertArrayEquals(new String[] {SUPPORTED_PROTOCOL}, serverSocket.getEnabledProtocols());
} finally {
configFile.delete();
}
}
代码示例来源:origin: com.hynnet/logback-core
public String[] getDefaultProtocols() {
return delegate.getEnabledProtocols();
}
代码示例来源:origin: tomcat-slf4j-logback/tomcat-slf4j-logback
public String[] getDefaultProtocols() {
return delegate.getEnabledProtocols();
}
代码示例来源:origin: Nextdoor/bender
public String[] getDefaultProtocols() {
return delegate.getEnabledProtocols();
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
public String[] getDefaultProtocols() {
return delegate.getEnabledProtocols();
}
代码示例来源:origin: apache/karaf
public String[] getEnabledProtocols() {
return ss.getEnabledProtocols();
}
代码示例来源:origin: tomcat-slf4j-logback/tomcat-slf4j-logback
public String[] getDefaultProtocols() {
return delegate.getEnabledProtocols();
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
public String[] getEnabledProtocols() {
return delegate.getEnabledProtocols();
}
代码示例来源:origin: io.virtdata/virtdata-lib-realer
public String[] getDefaultProtocols() {
return delegate.getEnabledProtocols();
}
代码示例来源:origin: tomcat-slf4j-logback/tomcat-slf4j-logback
public String[] getDefaultProtocols() {
return delegate.getEnabledProtocols();
}
代码示例来源:origin: org.wildfly.security/wildfly-elytron-ssl
public String[] getEnabledProtocols() {
return delegate.getEnabledProtocols();
}
内容来源于网络,如有侵权,请联系作者删除!