Home
last modified time | relevance | path

Searched refs:privKey (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/keystore/java/android/security/
DAndroidKeyPairGenerator.java102 final PrivateKey privKey; in generateKeyPair() local
105 privKey = engine.getPrivateKeyById(privateKeyAlias); in generateKeyPair()
133 cert = certGen.generate(privKey); in generateKeyPair()
153 return new KeyPair(pubKey, privKey); in generateKeyPair()
/frameworks/base/keystore/tests/src/android/security/
DAndroidKeyStoreTest.java2241 PrivateKey privKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(FAKE_RSA_KEY_1)); in testKeyStore_SetKeyEntry_ProtectedKey_Encrypted_Failure() local
2247 mKeyStore.setKeyEntry(TEST_ALIAS_1, privKey, "foo".toCharArray(), chain); in testKeyStore_SetKeyEntry_ProtectedKey_Encrypted_Failure()
2262 PrivateKey privKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(FAKE_RSA_KEY_1)); in testKeyStore_SetKeyEntry_Encrypted_Success() local
2267 mKeyStore.setKeyEntry(TEST_ALIAS_1, privKey, null, chain); in testKeyStore_SetKeyEntry_Encrypted_Success()
2291 PrivateKey privKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(FAKE_RSA_KEY_1)); in testKeyStore_SetKeyEntry_Replaced_Encrypted_Success() local
2296 mKeyStore.setKeyEntry(TEST_ALIAS_1, privKey, null, chain); in testKeyStore_SetKeyEntry_Replaced_Encrypted_Success()
2314 PrivateKey privKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(FAKE_RSA_KEY_1)); in testKeyStore_SetKeyEntry_Replaced_Encrypted_Success() local
2319 mKeyStore.setKeyEntry(TEST_ALIAS_1, privKey, null, chain); in testKeyStore_SetKeyEntry_Replaced_Encrypted_Success()
2340 final PrivateKey privKey; in generateCertificate() local
2343 privKey = engine.getPrivateKeyById(privateKeyAlias); in generateCertificate()
[all …]
DAndroidKeyPairGeneratorTest.java496 final PrivateKey privKey = pair.getPrivate(); in assertKeyPairCorrect() local
497 assertNotNull("The PrivateKey for the KeyPair should be not null", privKey); in assertKeyPairCorrect()
498 assertEquals(keyType, privKey.getAlgorithm()); in assertKeyPairCorrect()
/frameworks/base/core/java/android/app/admin/
DDevicePolicyManager.java1933 public boolean installKeyPair(ComponentName who, PrivateKey privKey, Certificate cert, in installKeyPair() argument
1937 return mService.installKeyPair(who, privKey.getEncoded(), pemCert, alias); in installKeyPair()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java2955 public boolean installKeyPair(ComponentName who, byte[] privKey, byte[] cert, String alias) { in installKeyPair() argument
2968 return keyChain.installKeyPair(privKey, cert, alias); in installKeyPair()