本文整理了Java中javax.net.ssl.SSLServerSocket.setSSLParameters()
方法的一些代码示例,展示了SSLServerSocket.setSSLParameters()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SSLServerSocket.setSSLParameters()
方法的具体详情如下:
包路径:javax.net.ssl.SSLServerSocket
类名称:SSLServerSocket
方法名:setSSLParameters
暂无
代码示例来源:origin: wildfly/wildfly
default void setSSLParameters(SSLContext sslContext, SSLServerSocket sslServerSocket, SSLParameters parameters) {
sslServerSocket.setSSLParameters(parameters);
}
代码示例来源:origin: wildfly/wildfly
public void setSSLParameters(final SSLParameters parameters) {
delegate.setSSLParameters(parameters);
}
代码示例来源:origin: apache/ignite
/** {@inheritDoc} */
@Override public ServerSocket createServerSocket(int port) throws IOException {
SSLServerSocket srvSock = (SSLServerSocket)delegate.createServerSocket(port);
if (parameters != null)
srvSock.setSSLParameters(parameters);
return srvSock;
}
代码示例来源:origin: apache/ignite
/** {@inheritDoc} */
@Override public ServerSocket createServerSocket(int port, int backlog) throws IOException {
SSLServerSocket srvSock = (SSLServerSocket)delegate.createServerSocket(port, backlog);
srvSock.setSSLParameters(parameters);
return srvSock;
}
代码示例来源:origin: apache/ignite
/** {@inheritDoc} */
@Override public ServerSocket createServerSocket(int port, int backlog, InetAddress locAddr) throws IOException {
SSLServerSocket srvSock = (SSLServerSocket)delegate.createServerSocket(port, backlog, locAddr);
if (parameters != null)
srvSock.setSSLParameters(parameters);
return srvSock;
}
代码示例来源:origin: apache/zookeeper
private SSLServerSocket configureSSLServerSocket(SSLServerSocket socket) {
SSLParameters sslParameters = socket.getSSLParameters();
configureSslParameters(sslParameters, false);
socket.setSSLParameters(sslParameters);
socket.setUseClientMode(false);
return socket;
}
代码示例来源:origin: apache/activemq
SSLParameters sslParams = new SSLParameters();
sslParams.setEndpointIdentificationAlgorithm("HTTPS");
((SSLServerSocket)this.serverSocket).setSSLParameters(sslParams);
代码示例来源:origin: wildfly/wildfly
public void setSSLParameters(final SSLContext sslContext, final SSLServerSocket sslServerSocket, final SSLParameters parameters) {
sslServerSocket.setSSLParameters(redefine(parameters, sslServerSocket.getSupportedCipherSuites(), sslServerSocket.getSupportedProtocols()));
}
代码示例来源:origin: wildfly/wildfly
public void configure(final SSLContext context, final SSLServerSocket sslServerSocket) {
sslServerSocket.setUseClientMode(clientMode);
final SSLParameters sslParameters = sslServerSocket.getSSLParameters();
configure(sslParameters, sslServerSocket.getSupportedProtocols(), sslServerSocket.getSupportedCipherSuites());
sslServerSocket.setSSLParameters(sslParameters);
}
代码示例来源:origin: org.eclipse.jetty/jetty-util
public SSLServerSocket newSslServerSocket(String host, int port, int backlog) throws IOException
{
checkIsStarted();
SSLContext context = getSslContext();
SSLServerSocketFactory factory = context.getServerSocketFactory();
SSLServerSocket socket =
(SSLServerSocket)(host == null ?
factory.createServerSocket(port, backlog) :
factory.createServerSocket(port, backlog, InetAddress.getByName(host)));
socket.setSSLParameters(customize(socket.getSSLParameters()));
return socket;
}
代码示例来源:origin: apache/karaf
public void setSSLParameters(SSLParameters sslParameters) {
ss.setSSLParameters(sslParameters);
}
}
代码示例来源:origin: org.apache.ignite/ignite-core
/** {@inheritDoc} */
@Override public ServerSocket createServerSocket(int port, int backlog) throws IOException {
SSLServerSocket srvSock = (SSLServerSocket)delegate.createServerSocket(port, backlog);
srvSock.setSSLParameters(parameters);
return srvSock;
}
代码示例来源:origin: org.apache.ignite/ignite-core
/** {@inheritDoc} */
@Override public ServerSocket createServerSocket(int port) throws IOException {
SSLServerSocket srvSock = (SSLServerSocket)delegate.createServerSocket(port);
if (parameters != null)
srvSock.setSSLParameters(parameters);
return srvSock;
}
代码示例来源:origin: org.apache.ignite/ignite-core
/** {@inheritDoc} */
@Override public ServerSocket createServerSocket(int port, int backlog, InetAddress locAddr) throws IOException {
SSLServerSocket srvSock = (SSLServerSocket)delegate.createServerSocket(port, backlog, locAddr);
if (parameters != null)
srvSock.setSSLParameters(parameters);
return srvSock;
}
代码示例来源:origin: jenkinsci/winstone
public SSLServerSocket newSslServerSocket(String host, int port, int backlog) throws IOException
{
checkIsStarted();
SSLContext context = getSslContext();
SSLServerSocketFactory factory = context.getServerSocketFactory();
SSLServerSocket socket =
(SSLServerSocket)(host == null ?
factory.createServerSocket(port, backlog) :
factory.createServerSocket(port, backlog, InetAddress.getByName(host)));
socket.setSSLParameters(customize(socket.getSSLParameters()));
return socket;
}
代码示例来源:origin: org.wildfly.security/wildfly-elytron
public void configure(final SSLContext context, final SSLServerSocket sslServerSocket) {
sslServerSocket.setUseClientMode(clientMode);
final SSLParameters sslParameters = sslServerSocket.getSSLParameters();
configure(sslParameters, sslServerSocket.getSupportedProtocols(), sslServerSocket.getSupportedCipherSuites());
sslServerSocket.setSSLParameters(sslParameters);
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
public void configure(final SSLContext context, final SSLServerSocket sslServerSocket) {
sslServerSocket.setUseClientMode(clientMode);
final SSLParameters sslParameters = sslServerSocket.getSSLParameters();
configure(sslParameters, sslServerSocket.getSupportedProtocols(), sslServerSocket.getSupportedCipherSuites());
sslServerSocket.setSSLParameters(sslParameters);
}
代码示例来源:origin: org.wildfly.security/wildfly-elytron-ssl
public void configure(final SSLContext context, final SSLServerSocket sslServerSocket) {
sslServerSocket.setUseClientMode(clientMode);
final SSLParameters sslParameters = sslServerSocket.getSSLParameters();
configure(sslParameters, sslServerSocket.getSupportedProtocols(), sslServerSocket.getSupportedCipherSuites());
sslServerSocket.setSSLParameters(sslParameters);
}
代码示例来源:origin: org.apache.cassandra/cassandra-all
/** Sets relevant socket options specified in encryption settings */
private static void prepareSocket(SSLServerSocket serverSocket, EncryptionOptions options)
{
String[] suites = filterCipherSuites(serverSocket.getSupportedCipherSuites(), options.cipher_suites);
if(options.require_endpoint_verification)
{
SSLParameters sslParameters = serverSocket.getSSLParameters();
sslParameters.setEndpointIdentificationAlgorithm("HTTPS");
serverSocket.setSSLParameters(sslParameters);
}
serverSocket.setEnabledCipherSuites(suites);
serverSocket.setNeedClientAuth(options.require_client_auth);
}
代码示例来源:origin: jsevellec/cassandra-unit
/** Sets relevant socket options specified in encryption settings */
private static void prepareSocket(SSLServerSocket serverSocket, EncryptionOptions options)
{
String[] suites = filterCipherSuites(serverSocket.getSupportedCipherSuites(), options.cipher_suites);
if(options.require_endpoint_verification)
{
SSLParameters sslParameters = serverSocket.getSSLParameters();
sslParameters.setEndpointIdentificationAlgorithm("HTTPS");
serverSocket.setSSLParameters(sslParameters);
}
serverSocket.setEnabledCipherSuites(suites);
serverSocket.setNeedClientAuth(options.require_client_auth);
}
内容来源于网络,如有侵权,请联系作者删除!