Searched refs:privKey (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/keystore/java/android/security/ |
D | AndroidKeyPairGenerator.java | 102 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/ |
D | AndroidKeyStoreTest.java | 2241 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 …]
|
D | AndroidKeyPairGeneratorTest.java | 496 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/ |
D | DevicePolicyManager.java | 1933 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/ |
D | DevicePolicyManagerService.java | 2955 public boolean installKeyPair(ComponentName who, byte[] privKey, byte[] cert, String alias) { in installKeyPair() argument 2968 return keyChain.installKeyPair(privKey, cert, alias); in installKeyPair()
|