Searched refs:MockKey (Results 1 – 8 of 8) sorted by relevance
49 import libcore.javax.crypto.MockKey;271 service.supportsParameter(new MockKey()); in test_Provider_getServices_supportsParameter()298 public MockSpi(MockKey parameter) { in MockSpi()334 assertFalse(service.supportsParameter(new MockKey())); in testProviderService_supportsParameter_KnownService_NoClassInitialization_Success()341 public static class UninitializedMockKey extends MockKey {360 service.supportsParameter(new MockKey()); in testProviderService_supportsParameter_TypeDoesNotSupportParameter_Failure()382 assertFalse(service.supportsParameter(new MockKey())); in testProviderService_supportsParameter_SupportedKeyClasses_NonKeyClass_Success()457 put("Signature.FOO SupportedKeyClasses", MockKey.class.getName()); in testProviderService_supportsParameter_SupportedKeyClasses_Success()464 assertTrue(service.supportsParameter(new MockKey())); in testProviderService_supportsParameter_SupportedKeyClasses_Success()483 assertFalse(service.supportsParameter(new MockKey())); in testProviderService_supportsParameter_SupportedKeyClasses_Failure()[all …]
24 import libcore.javax.crypto.MockKey;31 if (!(key instanceof MockKey)) { in checkKeyType()
28 import libcore.javax.crypto.MockKey;35 if (!(key instanceof MockKey)) { in checkKeyType()
48 import libcore.javax.crypto.MockKey;700 s.init(new MockKey()); in testKeyAgreement_getInstance_SuppliedProviderNotRegistered_Success()733 put("KeyAgreement.FOO SupportedKeyClasses", MockKey.class.getName()); in testKeyAgreement_getInstance_DelayedInitialization_KeyType()755 s.init(new MockKey()); in testKeyAgreement_getInstance_DelayedInitialization_KeyType()
48 import libcore.javax.crypto.MockKey;896 s.init(new MockKey()); in testMac_getInstance_SuppliedProviderNotRegistered_Success()929 put("Mac.FOO SupportedKeyClasses", MockKey.class.getName()); in testMac_getInstance_DelayedInitialization_KeyType()951 s.init(new MockKey()); in testMac_getInstance_DelayedInitialization_KeyType()
25 public class MockKey implements Key { class
40 if (!(key instanceof MockKey)) { in checkKeyType()
845 c.init(Cipher.ENCRYPT_MODE, new MockKey()); in testCipher_getInstance_SuppliedProviderNotRegistered_Success()860 c.init(Cipher.ENCRYPT_MODE, new MockKey()); in testCipher_getInstance_SuppliedProviderNotRegistered_MultipartTransform_Success()893 put("Cipher.FOO SupportedKeyClasses", MockKey.class.getName()); in testCipher_getInstance_DelayedInitialization_KeyType()916 c.init(Cipher.ENCRYPT_MODE, new MockKey()); in testCipher_getInstance_DelayedInitialization_KeyType()