Package dev.sigstore.tuf
Class Updater
- java.lang.Object
-
- dev.sigstore.tuf.Updater
-
public class Updater extends java.lang.ObjectTuf metadata updater. Implements updating your trusted metadata from a single TUF mirror.- See Also:
- TUF client workflow
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpdater.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Updater.Builderbuilder()voiddownloadTarget(java.lang.String targetName)Download a single target defined in targets.voidupdate()Update metadata and download all targets.voidupdateMeta()Update just metadata but do not download targets.
-
-
-
Method Detail
-
builder
public static Updater.Builder builder()
-
update
public void update() throws java.io.IOException, java.security.NoSuchAlgorithmException, java.security.spec.InvalidKeySpecException, java.security.InvalidKeyExceptionUpdate metadata and download all targets.- Throws:
java.io.IOExceptionjava.security.NoSuchAlgorithmExceptionjava.security.spec.InvalidKeySpecExceptionjava.security.InvalidKeyException
-
updateMeta
public void updateMeta() throws java.io.IOException, java.security.NoSuchAlgorithmException, java.security.spec.InvalidKeySpecExceptionUpdate just metadata but do not download targets.- Throws:
java.io.IOExceptionjava.security.NoSuchAlgorithmExceptionjava.security.spec.InvalidKeySpecException
-
downloadTarget
public void downloadTarget(java.lang.String targetName) throws java.io.IOException, java.security.NoSuchAlgorithmException, java.security.spec.InvalidKeySpecExceptionDownload a single target defined in targets. Does not handle delegated targets.- Throws:
java.io.IOExceptionjava.security.NoSuchAlgorithmExceptionjava.security.spec.InvalidKeySpecException
-
-