Home
last modified time | relevance | path

Searched refs:addProvider (Results 1 – 19 of 19) sorted by relevance

/libcore/luni/src/test/java/libcore/javax/crypto/
DCipherTest.java65 Security.addProvider(mockProvider); in testCipher_getInstance_DoesNotSupportKeyClass_Success()
98 Security.addProvider(mockProvider); in testCipher_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
133 Security.addProvider(mockProviderSpecific); in testCipher_getInstance_DelayedInitialization_KeyType()
134 Security.addProvider(mockProviderSpecific2); in testCipher_getInstance_DelayedInitialization_KeyType()
135 Security.addProvider(mockProviderAll); in testCipher_getInstance_DelayedInitialization_KeyType()
201 Security.addProvider(mockProviderOnlyAlgorithm); in testCipher_getInstance_CorrectPriority_AlgorithmOnlyFirst()
202 Security.addProvider(mockProviderFullTransformSpecified); in testCipher_getInstance_CorrectPriority_AlgorithmOnlyFirst()
224 Security.addProvider(mockProviderFullTransformSpecified); in testCipher_getInstance_CorrectPriority_FullTransformFirst()
225 Security.addProvider(mockProviderOnlyAlgorithm); in testCipher_getInstance_CorrectPriority_FullTransformFirst()
248 Security.addProvider(mockProviderAliasedAlgorithm); in testCipher_getInstance_CorrectPriority_AliasedAlgorithmFirst()
[all …]
DKeyAgreementTest.java63 Security.addProvider(mockProvider); in testKeyAgreement_getInstance_DoesNotSupportKeyClass_Success()
88 Security.addProvider(mockProvider); in testKeyAgreement_init_DoesNotSupportKeyClass_throwsInvalidKeyException()
DMacTest.java67 Security.addProvider(mockProvider); in testMac_init_DoesNotSupportKeyClass_throwsInvalidKeyException()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DSecurityTest.java88 Security.addProvider(null); in test_addProviderLjava_security_Provider()
99 assertEquals(initNum + 1, Security.addProvider(p)); in test_addProviderLjava_security_Provider()
103 assertEquals(-1, Security.addProvider(p)); in test_addProviderLjava_security_Provider()
125 Security.addProvider(provider); in testGetAlgorithmPropertyLjava_lang_String_java_lang_String()
170 Security.addProvider(providers[i]); in testRemoveProvider()
203 Security.addProvider(p); in test_getProviderLjava_lang_String()
240 Security.addProvider(p); in testGetProviders()
304 Security.addProvider(p); in test_getProvidersLjava_util_Map()
364 Security.addProvider(provider); in test_getProviders()
DProvider2Test.java140 Security.addProvider(mockProvider); in test_getAlias()
DSecurity2Test.java274 int addResult = Security.addProvider(test); in test_removeProviderLjava_lang_String()
287 addResult = Security.addProvider(entrust); in test_removeProviderLjava_lang_String()
DSignature2Test.java278 Security.addProvider(myProvider); in test_initVerifyLjava_security_Certificate()
DKeyFactoryTest.java42 Security.addProvider(provider); in setUp()
DKeyStore4Test.java40 Security.addProvider(new MyProvider()); in setUp()
DProviderTest.java84 Security.addProvider(p); in tearDown()
DKeyStore2Test.java948 Security.addProvider(support_TestProvider); in setUp()
/libcore/luni/src/test/java/libcore/java/security/
DProviderTest.java503 Security.addProvider(provider); in testProviderService_supportsParameter_UnknownService_Success()
523 Security.addProvider(provider); in testProviderService_supportsParameter_KnownService_NoClassInitialization_Success()
548 Security.addProvider(provider); in testProviderService_supportsParameter_TypeDoesNotSupportParameter_Failure()
571 Security.addProvider(provider); in testProviderService_supportsParameter_SupportedKeyClasses_NonKeyClass_Success()
589 Security.addProvider(provider); in testProviderService_supportsParameter_KnownService_NonKey_Failure()
612 Security.addProvider(provider); in testProviderService_supportsParameter_KnownService_SupportedKeyClasses_NonKey_Failure()
634 Security.addProvider(provider); in testProviderService_supportsParameter_KnownService_Null_Failure()
653 Security.addProvider(provider); in testProviderService_supportsParameter_SupportedKeyClasses_Success()
672 Security.addProvider(provider); in testProviderService_supportsParameter_SupportedKeyClasses_Failure()
691 Security.addProvider(provider); in testProviderService_supportsParameter_SupportedKeyFormats_Success()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DProviderBenchmark.java32 Security.addProvider(new MockProvider()); in timeWithNewProvider()
/libcore/luni/src/test/java/tests/targets/security/
DMessageDigestTestMD2.java46 Security.addProvider(provider); in testMessageDigest2()
DSignatureTestMD2withRSA.java95 Security.addProvider(provider); in testSignature2()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DKeyAgreementTest.java713 Security.addProvider(mockProvider); in testKeyAgreement_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
748 Security.addProvider(mockProviderSpecific); in testKeyAgreement_getInstance_DelayedInitialization_KeyType()
749 Security.addProvider(mockProviderSpecific2); in testKeyAgreement_getInstance_DelayedInitialization_KeyType()
750 Security.addProvider(mockProviderAll); in testKeyAgreement_getInstance_DelayedInitialization_KeyType()
DMacTest.java922 Security.addProvider(mockProvider); in testMac_getInstance_DoesNotSupportKeyClass_Success()
954 Security.addProvider(mockProvider); in testMac_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
989 Security.addProvider(mockProviderSpecific); in testMac_getInstance_DelayedInitialization_KeyType()
990 Security.addProvider(mockProviderSpecific2); in testMac_getInstance_DelayedInitialization_KeyType()
991 Security.addProvider(mockProviderAll); in testMac_getInstance_DelayedInitialization_KeyType()
/libcore/luni/src/test/java/tests/security/cert/
DCertStore2Test.java31 Security.addProvider(provider); in setUp()
/libcore/ojluni/src/main/java/java/security/
DSecurity.java326 public static int addProvider(Provider provider) { in addProvider() method in Security