Package com.yubico.fido.metadata
Class UnexpectedLegalHeader
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.yubico.fido.metadata.UnexpectedLegalHeader
-
- All Implemented Interfaces:
java.io.Serializable
public class UnexpectedLegalHeader extends java.lang.Exception
A FIDO Metadata Service metadata BLOB was successfully downloaded and validated, but contained an unexpected legal header.This exception contains the offending downloaded metadata BLOB as well as the cached metadata BLOB, if any (see
getCachedBlob()
). This enables applications to gracefully fall back to the cached blob when possible, while notifying maintainers that action is required for the new legal header.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<MetadataBLOB>
getCachedBlob()
The cached metadata BLOB, if any.@NonNull MetadataBLOB
getDownloadedBlob()
The newly downloaded metadata BLOB, which has an unexpected legal header.
-
-
-
Method Detail
-
getCachedBlob
public java.util.Optional<MetadataBLOB> getCachedBlob()
The cached metadata BLOB, if any.
-
getDownloadedBlob
@NonNull public @NonNull MetadataBLOB getDownloadedBlob()
The newly downloaded metadata BLOB, which has an unexpected legal header.The unexpected legal header can be retrieved via the
getPayload()
.getLegalHeader()
methods.
-
-