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

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

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

SSLServerSocket.getNeedClientAuth介绍

[英]Returns whether server-mode connections will be configured to require client authentication.
[中]返回是否将服务器模式连接配置为需要客户端身份验证。

代码示例

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

public boolean getNeedClientAuth() {
  return delegate.getNeedClientAuth();
}

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

@Test(timeout = 5000)
public void testCreateSSLServerSocketWithoutPort() throws Exception {
  setCustomCipherSuites();
  SSLServerSocket sslServerSocket = x509Util.createSSLServerSocket();
  Assert.assertArrayEquals(customCipherSuites, sslServerSocket.getEnabledCipherSuites());
  Assert.assertTrue(sslServerSocket.getNeedClientAuth());
}

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

@Test(timeout = 5000)
public void testCreateSSLServerSocketWithPort() throws Exception {
  int port = PortAssignment.unique();
  setCustomCipherSuites();
  SSLServerSocket sslServerSocket = x509Util.createSSLServerSocket(port);
  Assert.assertEquals(sslServerSocket.getLocalPort(), port);
  Assert.assertArrayEquals(customCipherSuites, sslServerSocket.getEnabledCipherSuites());
  Assert.assertTrue(sslServerSocket.getNeedClientAuth());
}

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

public boolean getNeedClientAuth() {
  return ss.getNeedClientAuth();
}

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

public boolean getNeedClientAuth() {
  return delegate.getNeedClientAuth();
}

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

public boolean getNeedClientAuth() {
  return delegate.getNeedClientAuth();
}

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

public boolean getNeedClientAuth() {
  return delegate.getNeedClientAuth();
}

代码示例来源:origin: org.jitsi/jain-sip-ri-ossonly

logger.logDebug("SSLServerSocket need client auth " + ((SSLServerSocket) this.sock).getNeedClientAuth());

相关文章