Package dev.sigstore.tuf
Class SigstoreTufClient
- java.lang.Object
-
- dev.sigstore.tuf.SigstoreTufClient
-
public class SigstoreTufClient extends java.lang.ObjectWrapper aroundUpdaterthat provides access to sigstore specific metadata items in a convenient API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSigstoreTufClient.Builder
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPUBLIC_GOOD_ROOT_RESOURCEstatic java.lang.StringSTAGING_ROOT_RESOURCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SigstoreTufClient.Builderbuilder()voidforceUpdate()Force an update, ignoring any cache validity.SigstoreTrustedRootgetSigstoreTrustedRoot()voidupdate()Update the tuf metadata if the cache has not been updated for at leastcacheValiditydefined on the client.
-
-
-
Field Detail
-
PUBLIC_GOOD_ROOT_RESOURCE
public static final java.lang.String PUBLIC_GOOD_ROOT_RESOURCE
- See Also:
- Constant Field Values
-
STAGING_ROOT_RESOURCE
public static final java.lang.String STAGING_ROOT_RESOURCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
builder
public static SigstoreTufClient.Builder builder()
-
update
public void update() throws java.io.IOException, java.security.NoSuchAlgorithmException, java.security.spec.InvalidKeySpecException, java.security.InvalidKeyException, java.security.cert.CertificateExceptionUpdate the tuf metadata if the cache has not been updated for at leastcacheValiditydefined on the client.- Throws:
java.io.IOExceptionjava.security.NoSuchAlgorithmExceptionjava.security.spec.InvalidKeySpecExceptionjava.security.InvalidKeyExceptionjava.security.cert.CertificateException
-
forceUpdate
public void forceUpdate() throws java.io.IOException, java.security.NoSuchAlgorithmException, java.security.spec.InvalidKeySpecException, java.security.InvalidKeyException, java.security.cert.CertificateExceptionForce an update, ignoring any cache validity.- Throws:
java.io.IOExceptionjava.security.NoSuchAlgorithmExceptionjava.security.spec.InvalidKeySpecExceptionjava.security.InvalidKeyExceptionjava.security.cert.CertificateException
-
getSigstoreTrustedRoot
public SigstoreTrustedRoot getSigstoreTrustedRoot()
-
-