Merge "Keystore 2.0: Fix wrong exception returned on not authenticated."

This commit is contained in:
Janis Danisevskis
2021-01-06 18:44:50 +00:00
committed by Gerrit Code Review

View File

@@ -120,6 +120,7 @@ abstract class KeyStoreCryptoOperationUtils {
return new KeyPermanentlyInvalidatedException();
case ResponseCode.LOCKED:
case ResponseCode.UNINITIALIZED:
case KeymasterDefs.KM_ERROR_KEY_USER_NOT_AUTHENTICATED:
// TODO b/173111727 remove response codes LOCKED and UNINITIALIZED
return new UserNotAuthenticatedException();
default: