Class MetaFetchResult<T extends SignedTufMeta>

  • Type Parameters:
    T - a TUF signed resource role

    public class MetaFetchResult<T extends SignedTufMeta>
    extends java.lang.Object
    Result object returned by MetaFetcher interface.
    • Constructor Summary

      Constructors 
      Constructor Description
      MetaFetchResult​(byte[] rawBytes, T metaResource)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T getMetaResource()
      The hydrated object from the bytestrema.
      byte[] getRawBytes()
      The resources raw bytes received from the mirror.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MetaFetchResult

        public MetaFetchResult​(byte[] rawBytes,
                               T metaResource)
    • Method Detail

      • getRawBytes

        public byte[] getRawBytes()
        The resources raw bytes received from the mirror.
      • getMetaResource

        public T getMetaResource()
        The hydrated object from the bytestrema.