Code example for CertificateExpiredException

0
                + ", validation time: " + new Date(notBefore));
            // END android-changed 
        } 
        if (time > notAfter) {
            // BEGIN android-changed 
            throw new CertificateExpiredException("current time: " + date
                + ", expiration time: " + new Date(notAfter));
            // END android-changed 
        } 
    } 
 
    /** 
     * @see java.security.cert.X509Certificate#getVersion() 
     * method documentation for more information. 
     */ 
    public int getVersion() { 
        return tbsCert.getVersion() + 1;
    } 
 
    /** 
     * @see java.security.cert.X509Certificate#getSerialNumber()