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

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

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

SSLServerSocket.bind介绍

暂无

代码示例

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

public void bind(final SocketAddress endpoint, final int backlog) throws IOException {
  delegate.bind(endpoint, backlog);
}

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

public void bind(final SocketAddress endpoint) throws IOException {
  delegate.bind(endpoint);
}

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

serverSocket.setReceiveBufferSize(socketBufferSize);
serverSocket.bind(new InetSocketAddress(bindAddr, nport), backlog);
finishServerSocket(serverSocket);
return serverSocket;

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

InetSocketAddress localServerAddress = new InetSocketAddress(
    InetAddress.getLoopbackAddress(), port);
listeningSocket.bind(localServerAddress);
Future<SSLSocket> acceptFuture;
acceptFuture = workerPool.submit(new Callable<SSLSocket>() {

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

@Override
public void bind(SocketAddress endpoint) throws IOException {
  ss.bind(endpoint);
}

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

@Override
public void bind(SocketAddress endpoint, int backlog) throws IOException {
  ss.bind(endpoint, backlog);
}

代码示例来源:origin: org.wildfly.security/wildfly-elytron

public void bind(final SocketAddress endpoint, final int backlog) throws IOException {
  delegate.bind(endpoint, backlog);
}

代码示例来源:origin: org.wildfly.security/wildfly-elytron-ssl

public void bind(final SocketAddress endpoint) throws IOException {
  delegate.bind(endpoint);
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

public void bind(final SocketAddress endpoint) throws IOException {
  delegate.bind(endpoint);
}

代码示例来源:origin: org.wildfly.security/wildfly-elytron

public void bind(final SocketAddress endpoint) throws IOException {
  delegate.bind(endpoint);
}

代码示例来源:origin: org.wildfly.security/wildfly-elytron-ssl

public void bind(final SocketAddress endpoint, final int backlog) throws IOException {
  delegate.bind(endpoint, backlog);
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

public void bind(final SocketAddress endpoint, final int backlog) throws IOException {
  delegate.bind(endpoint, backlog);
}

代码示例来源:origin: jsevellec/cassandra-unit

public static SSLServerSocket getServerSocket(EncryptionOptions options, InetAddress address, int port) throws IOException
{
  SSLContext ctx = createSSLContext(options, true);
  SSLServerSocket serverSocket = (SSLServerSocket)ctx.getServerSocketFactory().createServerSocket();
  try
  {
    serverSocket.setReuseAddress(true);
    prepareSocket(serverSocket, options);
    serverSocket.bind(new InetSocketAddress(address, port), 500);
    return serverSocket;
  }
  catch (IllegalArgumentException | SecurityException | IOException e)
  {
    serverSocket.close();
    throw e;
  }
}

代码示例来源:origin: org.apache.cassandra/cassandra-all

public static SSLServerSocket getServerSocket(EncryptionOptions options, InetAddress address, int port) throws IOException
{
  SSLContext ctx = createSSLContext(options, true);
  SSLServerSocket serverSocket = (SSLServerSocket)ctx.getServerSocketFactory().createServerSocket();
  try
  {
    serverSocket.setReuseAddress(true);
    prepareSocket(serverSocket, options);
    serverSocket.bind(new InetSocketAddress(address, port), 500);
    return serverSocket;
  }
  catch (IllegalArgumentException | SecurityException | IOException e)
  {
    serverSocket.close();
    throw e;
  }
}

代码示例来源:origin: com.strapdata.cassandra/cassandra-all

public static SSLServerSocket getServerSocket(EncryptionOptions options, InetAddress address, int port) throws IOException
{
  SSLContext ctx = createSSLContext(options, true);
  SSLServerSocket serverSocket = (SSLServerSocket)ctx.getServerSocketFactory().createServerSocket();
  try
  {
    serverSocket.setReuseAddress(true);
    prepareSocket(serverSocket, options);
    serverSocket.bind(new InetSocketAddress(address, port), 500);
    return serverSocket;
  }
  catch (IllegalArgumentException | SecurityException | IOException e)
  {
    serverSocket.close();
    throw e;
  }
}

代码示例来源:origin: com.facebook.presto.cassandra/cassandra-server

public static SSLServerSocket getServerSocket(EncryptionOptions options, InetAddress address, int port) throws IOException
{
  SSLContext ctx = createSSLContext(options, true);
  SSLServerSocket serverSocket = (SSLServerSocket)ctx.getServerSocketFactory().createServerSocket();
  serverSocket.setReuseAddress(true);
  String[] suits = filterCipherSuites(serverSocket.getSupportedCipherSuites(), options.cipher_suites);
  serverSocket.setEnabledCipherSuites(suits);
  serverSocket.setNeedClientAuth(options.require_client_auth);
  serverSocket.setEnabledProtocols(ACCEPTED_PROTOCOLS);
  serverSocket.bind(new InetSocketAddress(address, port), 500);
  return serverSocket;
}

代码示例来源:origin: komamitsu/fluency

serverSocket.bind(new InetSocketAddress(0));

代码示例来源:origin: apache/httpcomponents-core

final SSLServerSocket serverSocket = (SSLServerSocket) serverSslContext.getServerSocketFactory().createServerSocket();
serverSocket.setNeedClientAuth(true);
serverSocket.bind(new InetSocketAddress(0));

代码示例来源:origin: apache/httpcomponents-core

final SSLServerSocket serverSocket = (SSLServerSocket) serverSslContext.getServerSocketFactory().createServerSocket();
serverSocket.setNeedClientAuth(true);
serverSocket.bind(new InetSocketAddress(0));

代码示例来源:origin: apache/httpcomponents-core

Assert.assertTrue(supportedServerProtocols.contains("SSLv3"));
serverSocket.setEnabledProtocols(new String[] {"SSLv3"});
serverSocket.bind(new InetSocketAddress(0));

相关文章