470471472473474475476477
/** * getIssuerDN() method testing. */ public void testGetIssuerDN() { assertEquals("Incorrect issuer", new X500Principal(issuerName).getName(), certificate.getIssuerDN().getName()); }
479480481482483484485486
/** * getIssuerX500Principal() method testing. */ public void testGetIssuerX500Principal() { assertEquals("Incorrect issuer", new X500Principal(issuerName), certificate.getIssuerX500Principal()); }
488489490491492493494495
/** * getSubjectDN() method testing. */ public void testGetSubjectDN() { assertEquals("Incorrect subject", new X500Principal(subjectName).getName(), certificate.getSubjectDN().getName()); }
497498499500501502503504
/** * getSubjectX500Principal() method testing. */ public void testGetSubjectX500Principal() { assertEquals("Incorrect subject", new X500Principal(subjectName), certificate.getSubjectX500Principal()); }
211212213214215216217
public byte[] getEncoded() { return TestUtils.getX509Certificate_v1(); }; }; assertEquals(new X500Principal("CN=Z"), cert.getIssuerX500Principal()); }
225226227228229230231
public byte[] getEncoded() { return TestUtils.getX509Certificate_v1(); }; }; assertEquals(new X500Principal("CN=Y"), cert.getSubjectX500Principal()); }
481482483484485486487488
490491492493494495496497
499500501502503504505506
508509510511512513514515