Code example for X509Certificate

Methods: checkValidity

0
                certificates != null && certificates.length == 1)
            { 
                    // If only one cert and its valid and it caused a 
                    // CertificateException, assume its selfsigned. 
                    X509Certificate certificate = certificates[0];
                    certificate.checkValidity();
            } else { 
                // If we got to here, then we're probably NORMAL. Rethrow. 
                throw e;
            } 
        } 
    } 
 
    public X509Certificate[] getAcceptedIssuers() {
        return this.standardTrustManager.getAcceptedIssuers();
    } 
}