Skip to content

Fall back to JWT proof when Android KeyStore attestation fails - #57

Merged
QZHelen merged 1 commit into
digitalcredentialsdev:mainfrom
g-brnlee:fallback-jwt-proof
Oct 2, 2026
Merged

QZHelen merged 1 commit into
digitalcredentialsdev:mainfrom
g-brnlee:fallback-jwt-proof

Conversation

@g-brnlee

@g-brnlee g-brnlee commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

In OpenId4VCI.createKeyProofs(), generating an AndroidKeyStore key pair with an attestation challenge can throw a ProviderException on devices or emulators without provisioned hardware attestation keys (e.g., KeyStoreException: -10003).

Wrap createAndroidAttestationProofJwt() in a try/catch block so that if hardware key attestation fails, execution falls through and uses a software JWT proof (createProofJwt()) when the issuer also supports the "jwt" proof type.

In OpenId4VCI.createKeyProofs(), generating an AndroidKeyStore key pair
with an attestation challenge can throw a ProviderException on devices
or emulators without provisioned hardware attestation keys (e.g.,
KeyStoreException: -10003).

Wrap createAndroidAttestationProofJwt() in a try/catch block so that if
hardware key attestation fails, execution falls through and uses a
software JWT proof (createProofJwt()) when the issuer also supports the
"jwt" proof type.
@QZHelen
QZHelen merged commit b1e383f into digitalcredentialsdev:main Oct 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants