Code example for CertificateExpiredException

0
            for (int i = 0; i != boolId.length; i++)
            { 
                boolId[i] = (bytes[i / 8] & (0x80 >>> (i % 8))) != 0;
            } 
 
            return boolId;
        } 
             
        return null; 
    } 
     
    public void checkValidity()  
        throws CertificateExpiredException, CertificateNotYetValidException 
    { 
        this.checkValidity(new Date());
    } 
     
    public void checkValidity( 
        Date    date)
        throws CertificateExpiredException, CertificateNotYetValidException 
    {