SslDomain.setPeerAuthentication

Configure the level of verification used on the peer certificate.

This method controls how the peer's certificate is validated, if at all. By default, neither servers nor clients attempt to verify their peers ({@link VerifyMode#ANONYMOUS_PEER}). Once certificates and trusted CAs are configured, peer verification can be enabled.

In order to verify a peer, a trusted CA must be configured. See {@link #setTrustedCaDb(String)}.

NOTE: Servers must provide their own certificate when verifying a peer. See {@link #setCredentials(String, String, String)}).

@param mode the level of validation to apply to the peer

interface SslDomain
void
setPeerAuthentication

Meta