1 | public void checkClientTrusted(X509Certificate[] certificates,String authType) throws CertificateException {↵ | | 1 | public void checkServerTrusted(X509Certificate[] certificates,String authType) throws CertificateException {↵
|
2 | if (log.isDebugEnabled() && certificates != null) {↵ | | 2 | if (log.isDebugEnabled() && certificates != null) {↵
|
3 | for (int c = 0; c < certificates.length; c++) {↵ | | 3 | for (int c = 0; c < certificates.length; c++) {↵
|
4 | X509Certificate cert = certificates[c];↵ | | 4 | X509Certificate cert = certificates[c];↵
|
5 | log.debug(" Client certificate " + (c + 1) + ":");↵ | | 5 | log.debug(" Server certificate " + (c + 1) + ":");↵
|
6 | log.debug(" Subject DN: " + cert.getSubjectDN());↵ | | 6 | log.debug(" Subject DN: " + cert.getSubjectDN());↵
|
7 | log.debug(" Signature Algorithm: " + cert.getSigAlgName());↵ | | 7 | log.debug(" Signature Algorithm: " + cert.getSigAlgName());↵
|
8 | log.debug(" Valid from: " + cert.getNotBefore() );↵ | | 8 | log.debug(" Valid from: " + cert.getNotBefore() );↵
|
9 | log.debug(" Valid until: " + cert.getNotAfter());↵ | | 9 | log.debug(" Valid until: " + cert.getNotAfter());↵
|
10 | log.debug(" Issuer: " + cert.getIssuerDN());↵ | | 10 | log.debug(" Issuer: " + cert.getIssuerDN());↵
|
11 | | | 11 |
|