Added a reference to SecureChatSslContextFactory for those who wants client cert auth

This commit is contained in:
Trustin Lee 2010-01-25 11:51:12 +00:00
parent e8f3c3534c
commit f0431bb98d

View File

@ -46,7 +46,8 @@ public class SecureChatTrustManagerFactory extends TrustManagerFactorySpi {
X509Certificate[] chain, String authType) throws CertificateException {
// Always trust - it is an example.
// You should do something in the real world.
// You will reach here only if you enabled client certificate auth.
// You will reach here only if you enabled client certificate auth,
// as described in SecureChatSslContextFactory.
System.err.println(
"UNKNOWN CLIENT CERTIFICATE: " + chain[0].getSubjectDN());
}