OSDN Git Service

Cleanup keystore password changing and unlocking
authorChad Brubaker <cbrubaker@google.com>
Thu, 7 May 2015 17:02:22 +0000 (10:02 -0700)
committerChad Brubaker <cbrubaker@google.com>
Fri, 8 May 2015 18:11:43 +0000 (11:11 -0700)
commita91a8504191d91d288c55821caa5bf00c9be26a2
treee7eece5120d2c08ca3321d58507d979eeca63e45
parent1bc3c849ba5e9f23dd7e93012c4b5800b78c221b
Cleanup keystore password changing and unlocking

Add KeyStore.onUserPasswordChanged for the lockscreen to call when
the user changes their password. Keystore will then handle the logic of
deleting keys. Instead of calling Keystore.password_uid for both
unlocking and password changes the behavior has been split into
Keystore.unlock and onUserPasswordChanged.

Change-Id: I324914c00195d762cbaa8c63084e41fa796b7df8
core/java/android/security/IKeystoreService.aidl
keystore/java/android/security/KeyStore.java
keystore/tests/src/android/security/AndroidKeyPairGeneratorTest.java
keystore/tests/src/android/security/AndroidKeyStoreTest.java
keystore/tests/src/android/security/KeyStoreTest.java
services/core/java/com/android/server/LockSettingsService.java