Code example for X509Certificate

Methods: getIssuerDN

0
     * getIssuerDN() method testing. 
     */ 
    public void testGetIssuerDN() { 
        assertEquals("Incorrect issuer", 
                new X500Principal(issuerName).getName(), 
                certificate.getIssuerDN().getName());
    } 
     
    /** 
     * getIssuerX500Principal() method testing. 
     */ 
    public void testGetIssuerX500Principal() { 
        assertEquals("Incorrect issuer", 
                new X500Principal(issuerName), 
                certificate.getIssuerX500Principal());
    } 
     
    /** 
     * getSubjectDN() method testing. 
     */ 
    public void testGetSubjectDN() {