Added a reference to SecureChatSslContextFactory for those who wants client cert auth
This commit is contained in:
parent
e8f3c3534c
commit
f0431bb98d
@ -46,7 +46,8 @@ public class SecureChatTrustManagerFactory extends TrustManagerFactorySpi {
|
|||||||
X509Certificate[] chain, String authType) throws CertificateException {
|
X509Certificate[] chain, String authType) throws CertificateException {
|
||||||
// Always trust - it is an example.
|
// Always trust - it is an example.
|
||||||
// You should do something in the real world.
|
// 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(
|
System.err.println(
|
||||||
"UNKNOWN CLIENT CERTIFICATE: " + chain[0].getSubjectDN());
|
"UNKNOWN CLIENT CERTIFICATE: " + chain[0].getSubjectDN());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user