class DummyTrustManager implements X509TrustManager {

        public boolean isClientTrusted(X509Certificate[] cert) {
            return true;
        }

        public boolean isServerTrusted(X509Certificate[] cert) {<FILL_FUNCTION_BODY>}

        @Override
        public void checkClientTrusted(java.security.cert.X509Certificate[] x509Certificates,
                String s) throws CertificateException
        {
        }

        @Override
        public void checkServerTrusted(java.security.cert.X509Certificate[] x509Certificates,
                String s) throws CertificateException
        {
        }

        @Override
        public X509Certificate[] getAcceptedIssuers() {
            return new X509Certificate[0];
        }
    }

            try {
                cert[0].checkValidity();
                return true;
            }
            catch (CertificateExpiredException e) {
                return false;
            }
            catch (CertificateNotYetValidException e) {
                return false;
            }
        
<methods>public void <init>() ,public java.net.Socket createSocket(java.net.Socket, java.io.InputStream, boolean) throws java.io.IOException,public abstract java.net.Socket createSocket(java.net.Socket, java.lang.String, int, boolean) throws java.io.IOException,public static javax.net.SocketFactory getDefault() ,public abstract java.lang.String[] getDefaultCipherSuites() ,public abstract java.lang.String[] getSupportedCipherSuites() <variables>static final boolean DEBUG