Home
last modified time | relevance | path

Searched refs:getProvider (Results 1 – 25 of 83) sorted by relevance

1234

/libcore/luni/src/test/java/libcore/java/security/
DSecureRandomTest.java55 assertEquals(provider, sr2.getProvider()); in test_getInstance()
61 assertEquals(provider, sr3.getProvider()); in test_getInstance()
100 assertEquals(EXPECTED_PROVIDER, sr.getProvider().getClass().getName()); in testGetCommonInstances_Success()
105 assertEquals(EXPECTED_PROVIDER, sr1.getProvider().getClass().getName()); in testNewConstructors_Success()
109 assertEquals(EXPECTED_PROVIDER, sr2.getProvider().getClass().getName()); in testNewConstructors_Success()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DKeyGeneratorTest.java122 assertEquals("Incorrect provider", keyG.getProvider(), defaultProvider); in testKeyGenerator()
137 assertNull("Provider must be null", keyG.getProvider()); in testKeyGenerator()
267 assertEquals("Incorrect provider", keyG.getProvider().getName(), defaultProviderName); in testGetInstanceStringString03()
332 assertEquals("Incorrect provider", keyA.getProvider(), defaultProvider); in testGetInstanceStringProvider03()
461 assertNotNull(kg.getProvider()); in test_getProvider()
465 assertNull(kg.getProvider()); in test_getProvider()
476 assertNotNull(kg.getProvider()); in test_initILjava_security_SecureRandom()
497 assertNotNull(kg.getProvider()); in test_Ljava_security_SecureRandom()
519 assertNotNull(kg.getProvider()); in test_initLjava_security_spec_AlgorithmParameterSpec()
DSecretKeyFactoryTest.java131 assertEquals("Incorrect provider", secKF.getProvider(), defaultProvider); in testSecretKeyFactory01()
137 assertNull("Provider must be null", secKF.getProvider()); in testSecretKeyFactory01()
270 assertEquals("Incorrect provider", secKF.getProvider().getName(), in testSecretKeyFactory06()
338 assertEquals("Incorrect provider", secKF.getProvider(), in testSecretKeyFactory09()
444 assertNotNull(secKF.getProvider()); in test_getProvider()
448 assertNull(msf.getProvider()); in test_getProvider()
460 assertNotNull(secKF.getProvider()); in test_translateKeyLjavax_crypto_SecretKey()
DMacTest.java222 assertEquals("Incorrect provider", mac.getProvider().getName(), in testMac05()
287 assertEquals("Incorrect provider", mac.getProvider(), defaultProvider); in testMac08()
550 assertEquals(mac1.getProvider(), macs[i].getProvider()); in testMacClone()
769 assertEquals("Incorrect provider", defaultProvider, mac.getProvider()); in testMacConstructor()
779 assertNull("Provider must be null", mac.getProvider()); in testMacConstructor()
807 assertNotNull(mac.getProvider()); in test_getProvider()
811 assertNull(mac.getProvider()); in test_getProvider()
897 assertEquals(mockProvider, s.getProvider()); in testMac_getInstance_SuppliedProviderNotRegistered_Success()
918 assertEquals(mockProvider2, s.getProvider()); in testMac_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
952 assertEquals(mockProviderSpecific, s.getProvider()); in testMac_getInstance_DelayedInitialization_KeyType()
[all …]
DKeyAgreementTest.java234 assertEquals("Incorrect provider", keyA.getProvider().getName(), in testGetInstanceStringString03()
300 assertEquals("Incorrect provider", keyA.getProvider(), in testGetInstanceStringProvider03()
607 assertNotNull(keyA.getProvider()); in test_getProvider()
701 assertEquals(mockProvider, s.getProvider()); in testKeyAgreement_getInstance_SuppliedProviderNotRegistered_Success()
722 assertEquals(mockProvider2, s.getProvider()); in testKeyAgreement_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
756 assertEquals(mockProviderSpecific, s.getProvider()); in testKeyAgreement_getInstance_DelayedInitialization_KeyType()
760 assertEquals(mockProviderSpecific2, s.getProvider()); in testKeyAgreement_getInstance_DelayedInitialization_KeyType()
789 assertEquals(mockProviderAll, s.getProvider()); in testKeyAgreement_getInstance_DelayedInitialization_KeyType()
794 assertEquals(mockProviderSpecific, s.getProvider()); in testKeyAgreement_getInstance_DelayedInitialization_KeyType()
/libcore/luni/src/test/java/libcore/java/security/cert/
DX509CertificateTest.java467 if ("BC".equals(f.getProvider().getName())) { in getIssuerDN()
469 assertEquals(f.getProvider().getName(), in getIssuerDN()
520 if ("BC".equals(f.getProvider().getName())) { in getSubjectDN()
522 assertEquals(f.getProvider().getName(), in getSubjectDN()
647 assertNull(f.getProvider().getName(), c.getSigAlgParams()); in getSigAlgParams()
649 assertNotNull(f.getProvider().getName(), c.getSigAlgParams()); in getSigAlgParams()
655 assertNull(f.getProvider().getName(), c.getSigAlgParams()); in getSigAlgParams()
660 assertNull(f.getProvider().getName(), c.getSigAlgParams()); in getSigAlgParams()
677 assertNotNull(f.getProvider().getName(), params); in getSigAlgParams()
782 assertEquals(f.getProvider().getName(), -1, c.getBasicConstraints()); in getBasicConstraints()
[all …]
DCertificateFactoryTest.java248 if (!"BC".equals(cf.getProvider().getName())) { in test_generateCertificate_InputStream_Empty()
249 fail("should throw CertificateException: " + cf.getProvider().getName()); in test_generateCertificate_InputStream_Empty()
253 if ("BC".equals(cf.getProvider().getName())) { in test_generateCertificate_InputStream_Empty()
254 fail("should return null: " + cf.getProvider().getName()); in test_generateCertificate_InputStream_Empty()
264 if (!"BC".equals(cf.getProvider().getName())) { in test_generateCertificate_InputStream_InvalidStart_Failure()
265 fail("should throw CertificateException: " + cf.getProvider().getName()); in test_generateCertificate_InputStream_InvalidStart_Failure()
269 if ("BC".equals(cf.getProvider().getName())) { in test_generateCertificate_InputStream_InvalidStart_Failure()
270 fail("should return null: " + cf.getProvider().getName()); in test_generateCertificate_InputStream_InvalidStart_Failure()
431 final String providerName = cf.getProvider().getName() + "[" + encoding + "]"; in testCertPathEncoding()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DSecureRandom2Test.java39 assertNotNull(sr1.getProvider()); in testGetProvider()
42 assertNotNull(sr2.getProvider()); in testGetProvider()
47 assertEquals(p, sr3.getProvider()); in testGetProvider()
50 assertNotNull(random.getProvider()); in testGetProvider()
101 assertEquals(p, sr.getProvider()); in test_ConstructorLjava_security_SecureRandomSpi_java_security_Provider()
DKeyFactory2Test.java100 assertEquals(providers[i], kf.getProvider()); in test_constructor()
157 + fact.getProvider().getName() + ")", in test_generatePublicLjava_security_spec_KeySpec()
252 + fact.getProvider().getName() + ")", in test_getKeySpecLjava_security_KeyLjava_lang_Class()
258 + fact.getProvider().getName() + ")", in test_getKeySpecLjava_security_KeyLjava_lang_Class()
278 Provider p = fact.getProvider(); in test_getProvider()
325 Provider provider = Security.getProvider(providerName); in getKeyFactoryAlgorithms()
DAlgorithmParameterGenerator1Test.java228 assertEquals("Incorrect provider", apg.getProvider().getName(), in testAlgorithmParameterGenerator06()
299 assertEquals("Incorrect provider", apg.getProvider(), validProvider); in testAlgorithmParameterGenerator09()
367 assertEquals("Incorrect provider",apg.getProvider(),validProvider); in testConstructor()
376 assertNull("Incorrect provider", apg.getProvider()); in testConstructor()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DTrustManagerFactory1Test.java107 assertEquals("Incorrect provider", tmF.getProvider(), getDefaultProvider()); in test_ConstructorLjavax_net_ssl_TrustManagerFactorySpiLjava_security_ProviderLjava_lang_String()
112 assertNull("Provider must be null", tmF.getProvider()); in test_ConstructorLjavax_net_ssl_TrustManagerFactorySpiLjava_security_ProviderLjava_lang_String()
285 assertEquals("Invalid provider", trustMF.getProvider(), getDefaultProvider()); in test_getInstanceLjava_lang_StringLjava_lang_String04()
340 assertEquals("Invalid provider", trustMF.getProvider(), getDefaultProvider()); in test_getInstanceLjava_lang_StringLjava_security_Provider03()
354 .getInstance(getDefaultAlgorithm()).getProvider()); in test_getProvider()
359 .getProvider()); in test_getProvider()
363 .getProvider()); in test_getProvider()
DKeyManagerFactory1Test.java287 assertEquals("Incorrect provider", kMF.getProvider().getName(), in test_getInstanceLjava_lang_StringLjava_lang_String04()
359 assertEquals(kMF.getProvider(), defaultProvider); in test_getInstanceLjava_lang_StringLjava_security_Provider03()
377 assertEquals("Incorrect provider", keyMF.getProvider(), defaultProvider); in test_Constructor()
387 assertNull("Provider must be null", keyMF.getProvider()); in test_Constructor()
422 .getInstance(defaultAlgorithm).getProvider()); in test_getProvider()
427 .getProvider()); in test_getProvider()
431 .getProvider()); in test_getProvider()
/libcore/luni/src/test/java/tests/java/security/
DSecureRandomTest.java103 sr.getProvider()!= p) { in testSecureRandom()
132 if (sr.getProvider() != p || !"someRandom".equals(sr.getAlgorithm())) { in testGetInstanceString()
142 if (sr.getProvider() != p || !"someRandom".equals(sr.getAlgorithm())) { in testGetInstanceStringString()
205 if (sr.getProvider() != p || !"someRandom".equals(sr.getAlgorithm())) { in testGetInstanceStringProvider()
/libcore/luni/src/main/java/java/security/
DSecureRandom.java96 this.provider = service.getProvider(); in SecureRandom()
184 Provider p = Security.getProvider(provider); in getInstance()
225 public final Provider getProvider() { in getProvider() method in SecureRandom
DAlgorithmParameterGenerator.java123 Provider impProvider = Security.getProvider(provider); in getInstance()
167 public final Provider getProvider() { in getProvider() method in AlgorithmParameterGenerator
DKeyFactory.java106 Provider p = Security.getProvider(provider); in getInstance()
145 public final Provider getProvider() { in getProvider() method in KeyFactory
DMessageDigest.java126 Provider p = Security.getProvider(provider); in getInstance()
328 public final Provider getProvider() { in getProvider() method in MessageDigest
417 return new MessageDigestImpl(spi, getProvider(), getAlgorithm()); in clone()
/libcore/luni/src/test/java/tests/security/cert/
DCertPathBuilder1Test.java231 … assertEquals("Incorrect provider name", certPB.getProvider().getName(), defaultProviderName); in testCertPathBuilder07()
294 assertEquals("Incorrect provider name", certPB.getProvider(), defaultProvider); in testCertPathBuilder10()
353 assertEquals("Incorrect provider", certPB.getProvider(), defaultProvider); in testCertPathBuilder12()
361 assertNull("Incorrect provider", certPB.getProvider()); in testCertPathBuilder12()
417 assertEquals("Incorrect provider", cpb2.getProvider(), in testCertPathBuilder14()
423 assertEquals("Incorrect provider", cpb3.getProvider(), in testCertPathBuilder14()
DCertPathValidator1Test.java249 assertEquals("Incorrect provider name", certPV.getProvider() in testCertPathValidator07()
316 assertEquals("Incorrect provider name", certPV.getProvider(), in testCertPathValidator10()
366 assertEquals("Incorrect provider", certPV.getProvider(), defaultProvider); in testCertPathValidator12()
375 assertNull("Incorrect provider", certPV.getProvider()); in testCertPathValidator12()
427 assertEquals("Incorrect provider", certPV.getProvider(), in testCertPathValidator14()
435 assertEquals("Incorrect provider", certPV.getProvider(), in testCertPathValidator14()
/libcore/luni/src/main/java/java/security/cert/
DCertPathValidator.java86 public final Provider getProvider() { in getProvider() method in CertPathValidator
134 Provider impProvider = Security.getProvider(provider); in getInstance()
DCertPathBuilder.java85 public final Provider getProvider() { in getProvider() method in CertPathBuilder
132 Provider impProvider = Security.getProvider(provider); in getInstance()
/libcore/luni/src/main/java/javax/crypto/
DSecretKeyFactory.java87 public final Provider getProvider() { in getProvider() method in SecretKeyFactory
137 Provider impProvider = Security.getProvider(provider); in getInstance()
DKeyGenerator.java82 public final Provider getProvider() { in getProvider() method in KeyGenerator
131 Provider impProvider = Security.getProvider(provider); in getInstance()
/libcore/luni/src/main/java/javax/net/ssl/
DTrustManagerFactory.java104 Provider impProvider = Security.getProvider(provider); in getInstance()
181 public final Provider getProvider() { in getProvider() method in TrustManagerFactory
DKeyManagerFactory.java105 Provider impProvider = Security.getProvider(provider); in getInstance()
180 public final Provider getProvider() { in getProvider() method in KeyManagerFactory

1234