Home | History | Annotate | Download | only in cert

Lines Matching defs:CertificateFactory

43 import java.security.cert.CertificateFactory;
51 * Tests for <code>CertificateFactory</code> class methods and constructor
56 public static final String srvCertificateFactory = "CertificateFactory";
80 private static CertificateFactory[] initCertFs() {
86 CertificateFactory[] certFs = new CertificateFactory[3];
87 certFs[0] = CertificateFactory.getInstance(defaultType);
88 certFs[1] = CertificateFactory.getInstance(defaultType,
90 certFs[2] = CertificateFactory.getInstance(defaultType,
105 * Assertion: returns CertificateFactory if type is X.509
113 CertificateFactory certF = CertificateFactory
127 CertificateFactory.getInstance(null);
134 CertificateFactory.getInstance(invalidValues[i]);
155 CertificateFactory.getInstance(validValues[i], provider);
160 CertificateFactory.getInstance(validValues[i], "");
179 CertificateFactory.getInstance(null, defaultProviderName);
186 CertificateFactory.getInstance(invalidValues[i],
198 * Assertion: returns CertificateFactory when type and provider have valid
207 CertificateFactory certF;
209 certF = CertificateFactory.getInstance(validValues[i],
230 CertificateFactory.getInstance(validValues[i], provider);
250 CertificateFactory.getInstance(null, defaultProvider);
257 CertificateFactory.getInstance(invalidValues[i],
278 CertificateFactory certF;
280 certF = CertificateFactory.getInstance(validValues[i],
297 CertificateFactory[] certFs = initCertFs();
298 assertNotNull("CertificateFactory objects were not created", certFs);
313 " does not define for certF2 CertificateFactory"), yesNo);
329 " does not define for certF3 CertificateFactory"), yesNo);
347 CertificateFactory[] certFs = initCertFs();
348 assertNotNull("CertificateFactory objects were not created", certFs);
426 CertificateFactory[] certFs = initCertFs();
427 assertNotNull("CertificateFactory objects were not created", certFs);
486 CertificateFactory[] certFs = initCertFs();
487 assertNotNull("CertificateFactory objects were not created", certFs);
535 CertificateFactory[] certFs = initCertFs();
536 assertNotNull("CertificateFactory objects were not created", certFs);
575 CertificateFactory[] certFs = initCertFs();
576 assertNotNull("CertificateFactory objects were not created", certFs);
596 CertificateFactory[] certFs = initCertFs();
597 assertNotNull("CertificateFactory objects were not created", certFs);
616 CertificateFactory[] certFs = initCertFs();
617 assertNotNull("CertificateFactory objects were not created", certFs);
631 * Test for <code>CertificateFactory</code> constructor
632 * Assertion: returns CertificateFactory object
640 CertificateFactory cf = new myCertificateFactory(spi, defaultProvider,
670 CertificateFactory certF = CertificateFactory
674 certF = CertificateFactory.getInstance(validValues[i],
678 certF = CertificateFactory.getInstance(validValues[i],
703 assertTrue(cf instanceof CertificateFactory);
716 * Additional class to verify CertificateFactory constructor
719 class myCertificateFactory extends CertificateFactory {