@Override public void setWantClientAuth(boolean want) { sock.setWantClientAuth(want); }
public void setWantClientAuth(final boolean want) { delegate.setWantClientAuth(want); }
default void setWantClientAuth(SSLContext context, SSLSocket sslSocket, boolean value) { sslSocket.setWantClientAuth(value); }
public void setWantClientAuth(final SSLContext context, final SSLSocket sslSocket, final boolean value) { if (value) sslSocket.setWantClientAuth(value); }
/** * Sets various SSL handshake parameters based on the SSLParameter * argument. Specifically, sets the SSLSocket's enabled cipher * suites if the parameter's cipher suites are non-null. Similarly * sets the enabled protocols. If the parameters specify the want * or need for client authentication, those requirements are set * on the SSLSocket, otherwise both are set to false. * @since 1.6 */ public void setSSLParameters(SSLParameters p) { String[] cipherSuites = p.getCipherSuites(); if (cipherSuites != null) { setEnabledCipherSuites(cipherSuites); } String[] protocols = p.getProtocols(); if (protocols != null) { setEnabledProtocols(protocols); } if (p.getNeedClientAuth()) { setNeedClientAuth(true); } else if (p.getWantClientAuth()) { setWantClientAuth(true); } else { setWantClientAuth(false); } } }
sslSocket.setNeedClientAuth(true); } else if (clientAuth == CLIENT_AUTH_REQUESTED) { sslSocket.setWantClientAuth(true);
delegate.setWantClientAuth(want);
delegate.setWantClientAuth(want);
delegate.setWantClientAuth(want);
@Override public void setWantClientAuth(boolean want) { sock.setWantClientAuth(want); }
public void setWantClientAuth(boolean state) { delegate.setWantClientAuth(state); }
@Override public Socket acceptSocket(ServerSocket socket) throws IOException { Socket asock; try { asock = socket.accept(); assert asock instanceof SSLSocket; if(clientAuthNeed) { ((SSLSocket) asock).setNeedClientAuth(clientAuthNeed); } else { ((SSLSocket) asock).setWantClientAuth(clientAuthWant); } } catch (SSLException e) { throw new SocketException("SSL handshake error" + e.toString()); } return asock; }
socket.setWantClientAuth(isWantClientAuth);
sslSocket.setWantClientAuth(isWantClientAuth);
/** * Specifies whether to request client authentication for this socket. * * @param want Indicates whether to request client authentication for this * socket. */ @Override() public void setWantClientAuth(final boolean want) { delegateSocket.setWantClientAuth(want); }
@Override public void setWantClientAuth(boolean want) { delegate.setWantClientAuth(want); }
/** * Specifies whether to request client authentication for this socket. * * @param want Indicates whether to request client authentication for this * socket. */ @Override() public void setWantClientAuth(final boolean want) { delegateSocket.setWantClientAuth(want); }
public void setWantClientAuth(boolean state) { delegate.setWantClientAuth(state); }
@Override public void setWantClientAuth(final boolean want) { getSecureSocketDelegate().setWantClientAuth(want); }
public static void postSSLSocket(SSLSocket socket,int sslmode){ String[] pwdsuits = socket.getSupportedCipherSuites(); socket.setEnabledCipherSuites(pwdsuits); if(sslmode == 2){//双向认证 socket.setUseClientMode(false); socket.setNeedClientAuth(true); }else{ socket.setUseClientMode(true); socket.setWantClientAuth(true); } }