Package dev.sigstore.tuf.model
Interface SnapshotMeta
-
- All Superinterfaces:
TufMeta
@TypeAdapters @Immutable public interface SnapshotMeta extends TufMeta
The snapshot.json metadata file lists version numbers of all metadata files other than timestamp.json. This file ensures that clients will see a consistent view of all files on the repository. That is, metadata files (and thus Target files) that existed on the repository at different times cannot be combined and presented to clients by an attacker.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceSnapshotMeta.SnapshotTargetSnapshot data to prevent mix and match attacks.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.IntegerDEFAULT_MAX_LENGTHIf no length is provided, use a default, we just use the same default as the python client: https://github.com/theupdateframework/python-tuf/blob/22080157f438357935bfcb25b5b8429f4e4f610e/tuf/ngclient/config.py#L49
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.Map<java.lang.String,SnapshotMeta.SnapshotTarget>getMeta()Maps role and delegation role names (e.g.default SnapshotMeta.SnapshotTargetgetTargetMeta(java.lang.String targetName)-
Methods inherited from interface dev.sigstore.tuf.model.TufMeta
getExpires, getExpiresAsDate, getSpecVersion, getType, getVersion
-
-
-
-
Method Detail
-
getMeta
java.util.Map<java.lang.String,SnapshotMeta.SnapshotTarget> getMeta()
Maps role and delegation role names (e.g. "targets.json") to snapshot metadata.
-
getTargetMeta
default SnapshotMeta.SnapshotTarget getTargetMeta(java.lang.String targetName)
-
-