Home
last modified time | relevance | path

Searched refs:MockKey (Results 1 – 8 of 8) sorted by relevance

/libcore/luni/src/test/java/libcore/java/security/
DProviderTest.java49 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 …]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DMockMacSpi.java24 import libcore.javax.crypto.MockKey;
31 if (!(key instanceof MockKey)) { in checkKeyType()
DMockKeyAgreementSpi.java28 import libcore.javax.crypto.MockKey;
35 if (!(key instanceof MockKey)) { in checkKeyType()
DKeyAgreementTest.java48 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()
DMacTest.java48 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()
/libcore/luni/src/test/java/libcore/javax/crypto/
DMockKey.java25 public class MockKey implements Key { class
DMockCipherSpi.java40 if (!(key instanceof MockKey)) { in checkKeyType()
DCipherTest.java845 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()