Package dev.sigstore.tuf.model
Interface TufMeta
-
- All Known Subinterfaces:
RootMeta,SnapshotMeta,TargetMeta,TimestampMeta
public interface TufMetaGeneric Tuf Metadata interface for various TUF resources such as Roles, Snapshots, and Targets.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.StringgetExpires()Date at which this data expires.default java.time.ZonedDateTimegetExpiresAsDate()java.lang.StringgetSpecVersion()Spec version of this type.java.lang.StringgetType()Returns the metadata type.intgetVersion()The version of this Resource.
-
-
-
Method Detail
-
getType
@Named("_type") java.lang.String getType()Returns the metadata type. In this case 'root', 'snapshot', or 'timestamp'.
-
getExpires
java.lang.String getExpires()
Date at which this data expires.
-
getExpiresAsDate
default java.time.ZonedDateTime getExpiresAsDate()
-
getSpecVersion
@Named("spec_version") java.lang.String getSpecVersion()Spec version of this type.
-
getVersion
int getVersion()
The version of this Resource.
-
-