Controls whether accept
ed server-mode
SSLSockets
will be initially configured to
require client authentication.
A socket's client authentication setting is one of the following:
Unlike setWantClientAuth(boolean)
, if the accepted
socket's option is set and the client chooses not to provide
authentication information about itself, the negotiations
will stop and the connection will be dropped.
Calling this method overrides any previous setting made by
this method or setWantClientAuth(boolean)
.
The initial inherited setting may be overridden by calling
SSLSocket.setNeedClientAuth(boolean)
or
SSLSocket.setWantClientAuth(boolean)
.
need | set to true if client authentication is required, or false if no client authentication is desired. |
getNeedClientAuth(), setWantClientAuth(boolean), getWantClientAuth(), setUseClientMode(boolean)
Diagram: Socket