Refactor permission and state checking

Move the permission checking code to checkBinderPermission and
checkBinderPermissionOrSelf target to simplify permission checking code
and clean up keystore methods. Also adds
checkBinderPermissionAndKeystoreState as a helper method to check the
permission and the unlock state of the keystore.

Change-Id: I77c94af1593d2a7fd100c79a6364583067ffa559
1 file changed
tree: cfb7a4a0e1d6f7ea2fdbe0bf8607dc37747662ec
  1. keystore/
  2. keystore-engine/
  3. softkeymaster/