Code example for X509Certificate

Methods: getSubjectDN

0
            // The requested certificate type is not available. 
            // Test can not be applied. 
            return; 
        } 
        assertEquals("The subject DN is not correct.",
                                tbt_cert.getSubjectDN(), cert.getSubjectDN());
    } 
 
    /** 
     * getNotBefore() method testing. 
     */ 
    public void testGetNotBefore() { 
        if (this.cert == null) {
            // 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());
    }