Code example for X509Certificate

Methods: getIssuerX500Principal

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