1 23 24 package org.infoglue.cms.security; 25 26 import java.security.cert.CertificateException ; 27 import java.security.cert.X509Certificate ; 28 import javax.net.ssl.X509TrustManager; 29 30 public class DummyTrustManager implements X509TrustManager 31 { 32 33 public boolean isClientTrusted( X509Certificate [] cert) 34 { 35 return true; 36 } 37 38 public boolean isServerTrusted( X509Certificate [] cert) 39 { 40 return true; 41 } 42 43 public X509Certificate [] getAcceptedIssuers() 44 { 45 return new X509Certificate [ 0]; 46 } 47 48 public void checkClientTrusted(X509Certificate [] arg0, String arg1) throws CertificateException 49 { 50 } 52 53 public void checkServerTrusted(X509Certificate [] arg0, String arg1) throws CertificateException 54 { 55 } 57 } | Popular Tags |