Code example for X509Certificate

Methods: getIssuerDN

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