1 package net.trajano.commons.testing.internal;
2
3 import java.security.cert.CertificateException;
4 import java.security.cert.X509Certificate;
5
6 import javax.net.ssl.X509TrustManager;
7
8
9
10
11 public class NullX509TrustManager implements X509TrustManager {
12
13
14
15
16
17
18
19
20 @Override
21 public void checkClientTrusted(final X509Certificate[] chain,
22 final String authType) throws CertificateException {
23
24 }
25
26
27
28
29
30
31
32
33
34 @Override
35 public void checkServerTrusted(final X509Certificate[] chain,
36 final String authType) throws CertificateException {
37
38 }
39
40
41
42
43
44
45 @Override
46 public X509Certificate[] getAcceptedIssuers() {
47 return new X509Certificate[0];
48
49 }
50 }