Package com.yubico.fido.metadata
Class UnexpectedLegalHeader
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.yubico.fido.metadata.UnexpectedLegalHeader
- All Implemented Interfaces:
Serializable
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:
-
Method Summary
Modifier and TypeMethodDescriptionThe cached metadata BLOB, if any.@NonNull MetadataBLOB
The newly downloaded metadata BLOB, which has an unexpected legal header.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getCachedBlob
The cached metadata BLOB, if any. -
getDownloadedBlob
The newly downloaded metadata BLOB, which has an unexpected legal header.The unexpected legal header can be retrieved via the
getPayload()
.getLegalHeader()
methods.
-