Code example for X509Certificate

Methods: getNotAfter

0
            // 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());
    } 
 
    /** 
     * getSigAlgName() method testing. 
     */ 
    public void testGetSigAlgName() { 
        if (this.cert == null) {
            // The requested certificate type is not available. 
            // Test can not be applied. 
            return; 
        } 
        assertEquals("The name of signature algorithm is not correct.",
                                tbt_cert.getSigAlgName(), cert.getSigAlgName());
    }