Home
last modified time | relevance | path

Searched refs:mKeyStore (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/adb/
DAdbDebuggingManagerTest.java89 private AdbDebuggingManager.AdbKeyStore mKeyStore; field in AdbDebuggingManagerTest
120 mKeyStore = mHandler.mAdbKeyStore; in setUp()
122 mOriginalAllowedConnectionTime = mKeyStore.getAllowedConnectionTime(); in setUp()
128 mKeyStore.deleteKeyStore(); in tearDown()
185 mKeyStore.getLastConnectionTime(TEST_KEY_1)); in testDisconnectAlwaysAllowKey()
234 mKeyStore.setLastConnectionTime(TEST_KEY_1, 1); in testOriginalAlwaysAllowBehavior()
255 long lastConnectionTime = mKeyStore.getLastConnectionTime(TEST_KEY_1); in testLastConnectionTimeUpdatedByScheduledJob()
265 lastConnectionTime, mKeyStore.getLastConnectionTime(TEST_KEY_1)); in testLastConnectionTimeUpdatedByScheduledJob()
285 long lastConnectionTime = mKeyStore.getLastConnectionTime(TEST_KEY_1); in testKeystorePersisted()
321 mKeyStore.isKeyAuthorized(TEST_KEY_1)); in testAdbClearRemovesActiveKey()
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DKeyStoreProxyImpl.java34 private final KeyStore mKeyStore; field in KeyStoreProxyImpl
40 mKeyStore = keyStore; in KeyStoreProxyImpl()
45 return mKeyStore.containsAlias(alias); in containsAlias()
51 return mKeyStore.getKey(alias, password); in getKey()
57 mKeyStore.setEntry(alias, entry, protParam); in setEntry()
62 mKeyStore.deleteEntry(alias); in deleteEntry()
DPlatformKeyManager.java84 private final KeyStoreProxy mKeyStore; field in PlatformKeyManager
111 mKeyStore = keyStore; in PlatformKeyManager()
153 mKeyStore.deleteEntry(getEncryptAlias(userId, generationId)); in invalidatePlatformKey()
154 mKeyStore.deleteEntry(getDecryptAlias(userId, generationId)); in invalidatePlatformKey()
239 SecretKey key = (SecretKey) mKeyStore.getKey( in getEncryptKeyInternal()
291 SecretKey key = (SecretKey) mKeyStore.getKey( in getDecryptKeyInternal()
399 return mKeyStore.containsAlias(getEncryptAlias(userId, generationId)) in isKeyLoaded()
400 && mKeyStore.containsAlias(getDecryptAlias(userId, generationId)); in isKeyLoaded()
440 mKeyStore.setEntry( in generateAndLoadKey()
444 mKeyStore.setEntry( in generateAndLoadKey()
/frameworks/base/services/core/java/com/android/server/locksettings/
DUnifiedProfilePasswordCache.java68 private final KeyStore mKeyStore; field in UnifiedProfilePasswordCache
71 mKeyStore = keyStore; in UnifiedProfilePasswordCache()
91 mKeyStore.getProvider()); in storePassword()
133 key = mKeyStore.getKey(getEncryptionKeyName(userId), null); in retrievePassword()
168 if (mKeyStore.containsAlias(keyName)) { in removePassword()
169 mKeyStore.deleteEntry(keyName); in removePassword()
171 if (mKeyStore.containsAlias(legacyKeyName)) { in removePassword()
172 mKeyStore.deleteEntry(legacyKeyName); in removePassword()
DLockSettingsService.java297 private final KeyStore mKeyStore; field in LockSettingsService
665 mKeyStore = injector.getKeyStore(); in LockSettingsService()
689 mUnifiedProfilePasswordCache = injector.getUnifiedProfilePasswordCache(mKeyStore); in LockSettingsService()
1536 SecretKey decryptionKey = (SecretKey) mKeyStore.getKey( in getDecryptedPasswordForTiedProfile()
2131 mKeyStore.setEntry( in tieProfileLockToParent()
2138 mKeyStore.setEntry( in tieProfileLockToParent()
2149 SecretKey keyStoreEncryptionKey = (SecretKey) mKeyStore.getKey( in tieProfileLockToParent()
2159 mKeyStore.deleteEntry(PROFILE_KEY_NAME_ENCRYPT + profileUserId); in tieProfileLockToParent()
2611 if (mKeyStore.containsAlias(encryptAlias) || mKeyStore.containsAlias(decryptAlias)) { in removeKeystoreProfileKey()
2613 mKeyStore.deleteEntry(encryptAlias); in removeKeystoreProfileKey()
[all …]
/frameworks/base/core/java/android/security/net/config/
DKeyStoreCertificateSource.java36 private final KeyStore mKeyStore; field in KeyStoreCertificateSource
41 mKeyStore = ks; in KeyStoreCertificateSource()
58 Set<X509Certificate> certificates = new ArraySet<>(mKeyStore.size()); in ensureInitialized()
59 for (Enumeration<String> en = mKeyStore.aliases(); en.hasMoreElements();) { in ensureInitialized()
61 X509Certificate cert = (X509Certificate) mKeyStore.getCertificate(alias); in ensureInitialized()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
DApplicationKeyStorage.java55 private final KeyStoreProxy mKeyStore; field in ApplicationKeyStorage
68 mKeyStore = keyStore; in ApplicationKeyStorage()
85 mKeyStore.setEntry( in setSymmetricKeyEntry()
102 mKeyStore.deleteEntry(getInternalAlias(userId, uid, alias)); in deleteEntry()
/frameworks/base/keystore/java/android/security/keystore2/
DAndroidKeyStoreSpi.java116 private KeyStore2 mKeyStore; field in AndroidKeyStoreSpi
123 return AndroidKeyStoreProvider.loadAndroidKeyStoreKeyFromKeystore(mKeyStore, in engineGetKey()
170 return mKeyStore.getKeyEntry(descriptor); in getKeyMetadata()
463 mKeyStore.updateSubcomponents( in setPrivateKeyEntry()
621 KeyStoreSecurityLevel securityLevelInterface = mKeyStore.getSecurityLevel( in setPrivateKeyEntry()
631 mKeyStore.updateSubcomponents(metadata.key, userCertBytes, chainBytes); in setPrivateKeyEntry()
633 mKeyStore.deleteKey(metadata.key); in setPrivateKeyEntry()
902 KeyStoreSecurityLevel securityLevelInterface = mKeyStore.getSecurityLevel( in setSecretKeyEntry()
973 response = mKeyStore.getKeyEntry(wrappingkey); in setWrappedKeyEntry()
1091 mKeyStore.updateSubcomponents(makeKeyDescriptor(alias), in engineSetCertificateEntry()
[all …]
DAndroidKeyStoreKeyGeneratorSpi.java117 private final KeyStore2 mKeyStore = KeyStore2.getInstance(); field in AndroidKeyStoreKeyGeneratorSpi
401 iSecurityLevel = mKeyStore.getSecurityLevel(securityLevel); in engineGenerateKey()
424 mKeyStore.deleteKey(descriptor); in engineGenerateKey()
DAndroidKeyStoreKeyPairGeneratorSpi.java190 private KeyStore2 mKeyStore; field in AndroidKeyStoreKeyPairGeneratorSpi
372 mKeyStore = KeyStore2.getInstance(); in initialize()
438 KeyEntryResponse attestKey = mKeyStore.getKeyEntry(attestKeyDescriptor); in buildAndCheckAttestKeyDescriptor()
587 mKeyStore = null; in resetAll()
667 if (mKeyStore == null || mSpec == null) { in generateKeyPair()
696 KeyStoreSecurityLevel iSecurityLevel = mKeyStore.getSecurityLevel(securityLevel); in generateKeyPair()
724 mKeyStore.deleteKey(descriptor); in generateKeyPair()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DPinStorage.java143 private final KeyStore mKeyStore; field in PinStorage
181 mKeyStore = initializeKeyStore(); in PinStorage()
1043 if (mKeyStore == null) { in initializeSecretKey()
1076 (KeyStore.SecretKeyEntry) mKeyStore.getEntry(alias, null); in getSecretKey()
1138 if (mKeyStore != null) { in deleteSecretKey()
1141 mKeyStore.deleteEntry(alias); in deleteSecretKey()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt46630 Landroid/security/ConfirmationPrompt;->mKeyStore:Landroid/security/KeyStore;
47230 Landroid/security/keystore/AndroidKeyStoreCipherSpiBase;->mKeyStore:Landroid/security/KeyStore;
47258 Landroid/security/keystore/AndroidKeyStoreHmacSpi;->mKeyStore:Landroid/security/KeyStore;
47271 Landroid/security/keystore/AndroidKeyStoreKeyFactorySpi;->mKeyStore:Landroid/security/KeyStore;
47290 Landroid/security/keystore/AndroidKeyStoreKeyGeneratorSpi;->mKeyStore:Landroid/security/KeyStore;
47324 Landroid/security/keystore/AndroidKeyStoreKeyPairGeneratorSpi;->mKeyStore:Landroid/security/KeyStor…
47371 Landroid/security/keystore/AndroidKeyStoreSecretKeyFactorySpi;->mKeyStore:Landroid/security/KeyStor…
47383 Landroid/security/keystore/AndroidKeyStoreSpi;->mKeyStore:Landroid/security/KeyStore;
47582 Landroid/security/keystore/KeyStoreCryptoOperationChunkedStreamer$MainDataStream;->mKeyStore:Landro…
47675 Landroid/security/keystore/recovery/RecoveryController;->mKeyStore:Landroid/security/KeyStore;