/libcore/luni/src/test/java/libcore/java/security/ |
D | SecureRandomTest.java | 54 assertEquals(provider, sr2.getProvider()); in test_getInstance() 60 assertEquals(provider, sr3.getProvider()); in test_getInstance() 99 assertEquals(EXPECTED_PROVIDER, sr.getProvider().getClass().getName()); in testGetCommonInstances_Success() 104 assertNotNull(sr1.getProvider()); in testNewConstructors_Success() 105 assertEquals(EXPECTED_PROVIDER, sr1.getProvider().getClass().getName()); in testNewConstructors_Success() 109 assertEquals(EXPECTED_PROVIDER, sr2.getProvider().getClass().getName()); in testNewConstructors_Success() 129 assertEquals(openSSLProvider, SecureRandom.getInstance("SHA1PRNG").getProvider()); in testGetInstanceStrong() 130 assertEquals(openSSLProvider, new SecureRandom().getProvider()); in testGetInstanceStrong() 140 assertEquals(weakProvider, SecureRandom.getInstance("SHA1PRNG").getProvider()); in testGetInstanceStrong() 141 assertEquals(weakProvider, new SecureRandom().getProvider()); in testGetInstanceStrong() [all …]
|
D | SignatureTest.java | 84 assertEquals(mockProvider, s.getProvider()); in testSignature_getInstance_SuppliedProviderNotRegistered_Success() 101 assertEquals(mockProvider, s.getProvider()); in testSignature_getInstance_DoesNotSupportKeyClass_Success() 152 assertEquals(mockProvider2, s.getProvider()); in testSignature_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success() 189 assertEquals(mockProviderSpecific, s.getProvider()); in testSignature_getInstance_DelayedInitialization_KeyType() 193 assertEquals(mockProviderSpecific2, s.getProvider()); in testSignature_getInstance_DelayedInitialization_KeyType() 222 assertEquals(mockProviderAll, s.getProvider()); in testSignature_getInstance_DelayedInitialization_KeyType() 227 assertEquals(mockProviderSpecific, s.getProvider()); in testSignature_getInstance_DelayedInitialization_KeyType() 444 assertNull(s.getProvider()); in testSignature_getProvider_Subclass()
|
/libcore/luni/src/test/java/libcore/sun/security/jca/ |
D | ProvidersTest.java | 80 return KeyFactory.getInstance("EC", Security.getProvider("BC")); in BC_ALGORITHMS.add() 94 return KeyGenerator.getInstance("HMAC-MD5", Security.getProvider("BC")); in BC_ALGORITHMS.add() 108 return Signature.getInstance("SHA384/rsA", Security.getProvider("BC")); in BC_ALGORITHMS.add() 125 Security.getProvider("BC")); in BC_ALGORITHMS.add() 182 private static Provider getProvider(Object object) throws Exception { in getProvider() method in ProvidersTest 196 assertEquals("BC", getProvider(result).getName()); in testBeforeLimit() 200 assertEquals("AndroidOpenSSL", getProvider(result).getName()); in testBeforeLimit() 216 assertEquals("BC", getProvider(result).getName()); in testAtLimit() 220 assertEquals("AndroidOpenSSL", getProvider(result).getName()); in testAtLimit() 244 assertEquals("AndroidOpenSSL", getProvider(result).getName()); in testPastLimit() [all …]
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
D | CipherTest.java | 53 assertEquals(mockProvider, c.getProvider()); in testCipher_getInstance_SuppliedProviderNotRegistered_Success() 69 assertEquals(mockProvider, c.getProvider()); in testCipher_getInstance_DoesNotSupportKeyClass_Success() 86 assertEquals(mockProvider, c.getProvider()); in testCipher_getInstance_SuppliedProviderNotRegistered_MultipartTransform_Success() 107 assertEquals(mockProvider2, c.getProvider()); in testCipher_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success() 142 assertEquals(mockProviderSpecific, c.getProvider()); in testCipher_getInstance_DelayedInitialization_KeyType() 146 assertEquals(mockProviderSpecific2, c.getProvider()); in testCipher_getInstance_DelayedInitialization_KeyType() 175 assertEquals(mockProviderAll, c.getProvider()); in testCipher_getInstance_DelayedInitialization_KeyType() 180 assertEquals(mockProviderSpecific, c.getProvider()); in testCipher_getInstance_DelayedInitialization_KeyType() 205 assertEquals(mockProviderOnlyAlgorithm, c.getProvider()); in testCipher_getInstance_CorrectPriority_AlgorithmOnlyFirst() 228 assertEquals(mockProviderFullTransformSpecified, c.getProvider()); in testCipher_getInstance_CorrectPriority_FullTransformFirst() [all …]
|
D | KeyAgreementTest.java | 49 assertEquals(mockProvider, c.getProvider()); in testKeyAgreement_getInstance_SuppliedProviderNotRegistered_Success() 67 assertEquals(mockProvider, c.getProvider()); in testKeyAgreement_getInstance_DoesNotSupportKeyClass_Success()
|
/libcore/ojluni/src/main/java/sun/security/jca/ |
D | ProviderList.java | 97 if (providerList.getProvider(p.getName()) != null) { 112 if (providerList.getProvider(name) == null) { 119 if (config.getProvider().getName().equals(name) == false) { 148 return getProvider(index); 232 Provider getProvider(int index) { 233 Provider p = configs[index].getProvider(); 252 public Provider getProvider(String name) { 254 return (config == null) ? null : config.getProvider(); 263 Provider p = getProvider(i); 282 Provider p = configs[i].getProvider(); [all …]
|
/libcore/ojluni/src/main/java/javax/crypto/ |
D | KeyAgreement.java | 203 if (JceSecurity.canUseProvider(s.getProvider()) == false) { in getInstance() 339 if (JceSecurity.canUseProvider(s.getProvider()) == false) { in chooseFirstProvider() 348 provider = s.getProvider(); in chooseFirstProvider() 399 if (JceSecurity.canUseProvider(s.getProvider()) == false) { in chooseProvider() 405 provider = s.getProvider(); in chooseProvider() 444 public final Provider getProvider() { in getProvider() method in KeyAgreement
|
D | Mac.java | 265 if (JceSecurity.canUseProvider(s.getProvider()) == false) { in getInstance() 392 if (JceSecurity.canUseProvider(s.getProvider()) == false) { in chooseFirstProvider() 401 provider = s.getProvider(); in chooseFirstProvider() 438 if (JceSecurity.canUseProvider(s.getProvider()) == false) { in chooseProvider() 444 provider = s.getProvider(); in chooseProvider() 483 public final Provider getProvider() { in getProvider() method in Mac
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | KeyGeneratorTest.java | 122 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() 359 assertEquals(defaultProvider, kgs[i].getProvider()); in testInitKey() 464 assertNotNull(kg.getProvider()); in test_getProvider() 468 assertNull(kg.getProvider()); in test_getProvider() 479 assertNotNull(kg.getProvider()); in test_initILjava_security_SecureRandom() 500 assertNotNull(kg.getProvider()); in test_Ljava_security_SecureRandom() 522 assertNotNull(kg.getProvider()); in test_initLjava_security_spec_AlgorithmParameterSpec()
|
D | SecretKeyFactoryTest.java | 131 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() 367 assertEquals(defaultProvider, skF[i].getProvider()); in testSecretKeyFactory10() 447 assertNotNull(secKF.getProvider()); in test_getProvider() 451 assertNull(msf.getProvider()); in test_getProvider() 463 assertNotNull(secKF.getProvider()); in test_translateKeyLjavax_crypto_SecretKey()
|
D | MacTest.java | 101 defaultProvider = mac.getProvider(); 252 assertEquals("Incorrect provider", mac.getProvider().getName(), in testMac05() 317 assertEquals("Incorrect provider", mac.getProvider(), defaultProvider); in testMac08() 580 assertEquals(mac1.getProvider(), macs[i].getProvider()); in testMacClone() 799 assertEquals("Incorrect provider", defaultProvider, mac.getProvider()); in testMacConstructor() 809 assertNull("Provider must be null", mac.getProvider()); in testMacConstructor() 837 assertNotNull(mac.getProvider()); in test_getProvider() 841 assertNull(mac.getProvider()); in test_getProvider() 936 assertEquals(mockProvider, s.getProvider()); in testMac_getInstance_DoesNotSupportKeyClass_Success() 952 assertEquals(mockProvider, s.getProvider()); in testMac_getInstance_SuppliedProviderNotRegistered_Success() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | SecureRandom2Test.java | 39 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()
|
D | KeyFactory2Test.java | 100 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()
|
/libcore/ojluni/src/main/java/java/time/zone/ |
D | ZoneRulesProvider.java | 183 return getProvider(zoneId).provideRules(zoneId, forCaching); in getRules() 212 return getProvider(zoneId).provideVersions(zoneId); in getVersions() 222 private static ZoneRulesProvider getProvider(String zoneId) { in getProvider() method in ZoneRulesProvider
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
D | X509CertificateTest.java | 497 if ("BC".equals(f.getProvider().getName())) { in getIssuerDN() 499 assertEquals(f.getProvider().getName(), in getIssuerDN() 550 if ("BC".equals(f.getProvider().getName())) { in getSubjectDN() 552 assertEquals(f.getProvider().getName(), in getSubjectDN() 673 assertNull(f.getProvider().getName(), c.getSigAlgParams()); in getSigAlgParams() 675 assertNotNull(f.getProvider().getName(), c.getSigAlgParams()); in getSigAlgParams() 681 assertNull(f.getProvider().getName(), c.getSigAlgParams()); in getSigAlgParams() 686 assertNull(f.getProvider().getName(), c.getSigAlgParams()); in getSigAlgParams() 703 assertNotNull(f.getProvider().getName(), params); in getSigAlgParams() 808 assertEquals(f.getProvider().getName(), -1, c.getBasicConstraints()); in getBasicConstraints() [all …]
|
D | X509CRLTest.java | 178 interned.verify(caCert.getPublicKey(), f.getProvider()); in test_X509CRLImpl_verify() 225 crlRsa.verify(caCert.getPublicKey(), f.getProvider()); in verify() 230 if (!f.getProvider().getName().equals("AndroidOpenSSL")) { in verify() 246 crlRsa.verify(dsaCert.getPublicKey(), f.getProvider()); in verify() 254 if (!f.getProvider().getName().equals("AndroidOpenSSL")) { in verify() 280 if ("BC".equals(f.getProvider().getName())) { in isRevoked() 284 if (!"BC".equals(f.getProvider().getName())) { in isRevoked() 461 assertNull(f.getProvider().getName(), sigAlgParams); in getSigAlgParams() 463 assertNotNull(f.getProvider().getName(), sigAlgParams); in getSigAlgParams() 468 assertEquals(f.getProvider().getName(), Arrays.toString(expected), in getSigAlgParams() [all …]
|
/libcore/luni/src/test/java/libcore/java/security/spec/ |
D | AlgorithmParametersPSSTest.java | 74 assertNotNull(params.getProvider()); in testGetProvider() 150 if (!"BC".equals(params.getProvider().getName())) { in testGetEncodedWithBrokenInput() 152 "Unexpected exception. Provider: " + params.getProvider(), in testGetEncodedWithBrokenInput() 164 if (!"BC".equals(params.getProvider().getName())) { in testGetEncodedWithBrokenInput() 166 "Unexpected exception. Provider: " + params.getProvider(), in testGetEncodedWithBrokenInput()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | TrustManagerFactory1Test.java | 107 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() 341 assertEquals("Invalid provider", trustMF.getProvider(), getDefaultProvider()); in test_getInstanceLjava_lang_StringLjava_security_Provider03() 355 .getInstance(getDefaultAlgorithm()).getProvider()); in test_getProvider() 360 .getProvider()); in test_getProvider() 364 .getProvider()); in test_getProvider()
|
D | KeyManagerFactory1Test.java | 287 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/ojluni/src/main/java/javax/net/ssl/ |
D | SSLContext.java | 303 public final Provider getProvider() { in getProvider() method in SSLContext 377 "Provider: " + getProvider() + in createSSLEngine() 409 "Provider: " + getProvider() + in createSSLEngine()
|
/libcore/tools/docs/crypto/src/java/libcore/java/security/ |
D | ListProviders.java | 150 print(sslContext.getProvider(), "SSLEngine.Supported", suite); in main() 153 print(sslContext.getProvider(), "SSLEngine.Enabled", suite); in main() 157 print(sslContext.getProvider(), "SSLSocket.Supported", suite); in main() 160 print(sslContext.getProvider(), "SSLSocket.Enabled", suite); in main()
|
/libcore/luni/src/test/java/tests/java/security/ |
D | SecureRandomTest.java | 103 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/tools/crypto/src/java/libcore/java/security/ |
D | ProviderOverlap.java | 36 Set<String> conscrypt = getAlgorithms(Security.getProvider("AndroidOpenSSL")); in main() 37 Set<String> bc = getAlgorithms(Security.getProvider("BC")); in main()
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | CertPathBuilder1Test.java | 231 … 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()
|
D | CertPathValidator1Test.java | 249 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()
|