Class 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.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait