Skip to content

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Sep 11, 2025

Add KeyAttestationReason to CertPathValidatorException.

This will allow callers to distinguish between different errors in the
chain without string matching. This requires explicitly stating the
required API for each method which diretly or indirectly uses
KeyAttestationReason, but shouldn't be an actual change in requirements
since the other reasons also require API 24 when used on Android.

This also moves the key attestation chain format checks to be
exclusively in the validator instead of some of them being duplicated
in the KeyAttestationCertPath constructor. The validator checks could
previously never be executed and the CertPathValidatorException allows
for more structured information returned on exception.

@copybara-service copybara-service bot force-pushed the test_805800611 branch 10 times, most recently from 4433292 to a770f57 Compare September 17, 2025 18:04
@copybara-service copybara-service bot force-pushed the test_805800611 branch 2 times, most recently from 7f16a7f to b1c9203 Compare September 25, 2025 13:48
@copybara-service copybara-service bot force-pushed the test_805800611 branch 6 times, most recently from 7b9d72b to 5439d7e Compare October 22, 2025 10:39
@copybara-service copybara-service bot force-pushed the test_805800611 branch 4 times, most recently from 8d3827d to d3c4d53 Compare November 5, 2025 12:10
@copybara-service copybara-service bot force-pushed the test_805800611 branch 2 times, most recently from ebc67cf to 5bd653b Compare November 5, 2025 15:35
@copybara-service copybara-service bot closed this Nov 5, 2025
@copybara-service copybara-service bot deleted the test_805800611 branch November 5, 2025 16:20
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.

0 participants