File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
webauthn-server-attestation/src/main/java/com/yubico/fido/metadata Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -879,6 +879,10 @@ private Optional<MetadataBLOB> refreshBlobInternal(
879879 final ByteArray downloadedBytes =
880880 download (
881881 blobUrl ,
882+ // This should ideally use the value of the ETag response header from when the cached
883+ // BLOB was downloaded, but we don't have anywhere to store that without changing the
884+ // format of the cache serialization. This is good enough as the MDS explicitly
885+ // specifies that the ETag is set to the "no" of the BLOB.
882886 cached .map (cachedBlob -> String .format ("%d" , cachedBlob .getPayload ().getNo ())));
883887 final MetadataBLOB downloadedBlob = parseAndVerifyBlob (downloadedBytes , trustRoot );
884888 log .debug ("New BLOB downloaded." );
You can’t perform that action at this time.
0 commit comments