@Override
    public Key engineGetKey(String keyId, char[] password)
        throws NoSuchAlgorithmException, UnrecoverableKeyException {
      throw new ProviderException("Something is wrong with the provider");
    }
A fake implementation of KeyStoreSpi where engineGetKey always throws a ProviderException.

<p>If the key is stored in StrongBox, it is possible that a ProviderException is thrown if
there's any problem with it.
java_src/src/main/java/com/google/crypto/tink/integration/android/internal/FakeAndroidKeystoreProvider.java