Code example for X509Certificate

Methods: getNotBefore

0
            // The requested certificate type is not available. 
            // Test can not be applied. 
            return; 
        } 
        assertEquals("The NotBefore date is not correct.",
                                tbt_cert.getNotBefore(), cert.getNotBefore());
    } 
 
    /** 
     * getNotAfter() method testing. 
     */ 
    public void testGetNotAfter() { 
        if (this.cert == null) {
            // The requested certificate type is not available. 
            // Test can not be applied. 
            return; 
        } 
        assertEquals("The NotAfter date is not correct.",
                                tbt_cert.getNotAfter(), cert.getNotAfter());
    }