Lines Matching defs:key

801         assertTrue("Should contain generated private key", mKeyStore.containsAlias(TEST_ALIAS_1));
1178 private void assertPrivateKeyEntryEquals(PrivateKeyEntry keyEntry, String keyType, byte[] key,
1181 PrivateKey expectedKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(key));
1256 Key key = mKeyStore.getKey(TEST_ALIAS_1, null);
1257 assertNotNull("Key should exist", key);
1259 assertTrue("Should be a PrivateKey", key instanceof PrivateKey);
1260 assertTrue("Should be a RSAKey", key instanceof RSAKey);
1265 assertEquals("Inserted key should be same as retrieved key",
1266 ((RSAKey) expectedKey).getModulus(), ((RSAKey) key).getModulus());
1279 Key key = mKeyStore.getKey(TEST_ALIAS_1, null);
1280 assertNotNull("Key should exist", key);
1282 assertTrue("Should be a PrivateKey", key instanceof PrivateKey);
1283 assertTrue("Should be a RSAKey", key instanceof RSAKey);
1288 assertEquals("Inserted key should be same as retrieved key",
1289 ((RSAKey) expectedKey).getModulus(), ((RSAKey) key).getModulus());
1868 // Insert initial key
1890 // TODO make a separate key
1891 // Replace key
1941 // Create key #1
1947 Key key = mKeyStore.getKey(TEST_ALIAS_1, null);
1949 assertTrue(key instanceof PrivateKey);
1951 PrivateKey expectedKey = (PrivateKey) key;
1968 // Replace key #1 with new chain
1970 Key key = mKeyStore.getKey(TEST_ALIAS_1, null);
1972 assertTrue(key instanceof PrivateKey);
1974 PrivateKey expectedKey = (PrivateKey) key;
1997 // Create key #1
2010 // Create key #2
2023 // Replace key #1 with key #2
2042 // Create key #1
2182 // Test key usage