01: package org.claros.commons.mail.protocols;
02:
03: import com.sun.net.ssl.X509TrustManager;
04: import java.security.cert.X509Certificate;
05:
06: @SuppressWarnings("deprecation")
07: public class DummyTrustManager implements X509TrustManager {
08: public boolean isClientTrusted(X509Certificate[] cert) {
09: return true;
10: }
11:
12: public boolean isServerTrusted(X509Certificate[] cert) {
13: return true;
14: }
15:
16: public X509Certificate[] getAcceptedIssuers() {
17: return new X509Certificate[0];
18: }
19: }
|