Class FidoMetadataDownloader.FidoMetadataDownloaderBuilder.Step1
- Enclosing class:
- FidoMetadataDownloader.FidoMetadataDownloaderBuilder
By using the FIDO Metadata Service, you will be subject to its terms of service. This step serves two purposes:
- To remind you and any code reviewers that you need to read those terms of service before using this feature.
- To help you detect if the legal header changes, so you can take appropriate action.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionexpectLegalHeader
(@NonNull String... expectedLegalHeaders) Set legal headers expected in the metadata BLOB.
-
Method Details
-
expectLegalHeader
public FidoMetadataDownloader.FidoMetadataDownloaderBuilder.Step2 expectLegalHeader(@NonNull @NonNull String... expectedLegalHeaders) Set legal headers expected in the metadata BLOB.By using the FIDO Metadata Service, you will be subject to its terms of service. This builder step serves two purposes:
- To remind you and any code reviewers that you need to read those terms of service before using this feature.
- To help you detect if the legal header changes, so you can take appropriate action.
If the legal header in the downloaded BLOB does not equal any of the
expectedLegalHeaders
, anUnexpectedLegalHeader
exception will be thrown in the finalizing builder step.Note that this library makes no guarantee that a change to the FIDO Metadata Service terms of service will also cause a change to the legal header in the BLOB.
At the time of this library release, the current legal header is
"Retrieval and use of this BLOB indicates acceptance of the appropriate agreement located at https://fidoalliance.org/metadata/metadata-legal-terms/"
.- Parameters:
expectedLegalHeaders
- the set of BLOB legal headers you expect in the metadata BLOB payload.
-