Lines Matching defs:CERT
18 package tests.security.cert;
20 import org.apache.harmony.security.tests.support.cert.TestUtils;
26 import java.security.cert.CertificateException;
27 import java.security.cert.CertificateFactory;
28 import java.security.cert.CertificateParsingException;
29 import java.security.cert.X509Certificate;
30 import java.security.cert.X509Extension;
100 private static String CERT =
277 MyX509Certificate cert = new MyX509Certificate() {
285 assertEquals(new X500Principal("CN=Z"), cert.getIssuerX500Principal());
290 MyX509Certificate cert = new MyX509Certificate() {
298 assertEquals(new X500Principal("CN=Y"), cert.getSubjectX500Principal());
303 X509Certificate cert = generateCert(CERT_CORRECT);
304 List<String> l = cert.getExtendedKeyUsage();
497 generateCert(CERT);
506 X509Certificate cert = (X509Certificate) cf.generateCertificate(bais);
507 assertNotNull(cert);
508 return cert;