From f0431bb98d78c2de4f0c4262514c1b37d75a0648 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Mon, 25 Jan 2010 11:51:12 +0000 Subject: [PATCH] Added a reference to SecureChatSslContextFactory for those who wants client cert auth --- .../example/securechat/SecureChatTrustManagerFactory.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/jboss/netty/example/securechat/SecureChatTrustManagerFactory.java b/src/main/java/org/jboss/netty/example/securechat/SecureChatTrustManagerFactory.java index adc7d9cec6..a5054f8ef7 100644 --- a/src/main/java/org/jboss/netty/example/securechat/SecureChatTrustManagerFactory.java +++ b/src/main/java/org/jboss/netty/example/securechat/SecureChatTrustManagerFactory.java @@ -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()); }