Interface SnapshotMeta.SnapshotTarget

  • Enclosing interface:
    SnapshotMeta

    @Immutable
    public static interface SnapshotMeta.SnapshotTarget
    Snapshot data to prevent mix and match attacks.
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      java.util.Optional<Hashes> getHashes()
      The valid hashes for the given target's metadata.
      java.util.Optional<java.lang.Integer> getLength()
      The length in bytes of the given target's metadata.
      default java.lang.Integer getLengthOrDefault()
      The length in bytes of the given target's metadata, or a default if not present
      int getVersion()
      The expected version of the given target's metadata.
    • Method Detail

      • getHashes

        java.util.Optional<Hashes> getHashes()
        The valid hashes for the given target's metadata. This is optional and may not be present
      • getLength

        java.util.Optional<java.lang.Integer> getLength()
        The length in bytes of the given target's metadata. This is optional and may not be present, use getLengthOrDefault() to delegate to the client default config.
      • getLengthOrDefault

        @Derived
        @Ignore
        default java.lang.Integer getLengthOrDefault()
        The length in bytes of the given target's metadata, or a default if not present
      • getVersion

        int getVersion()
        The expected version of the given target's metadata.