Class SigstoreTufClient


  • public class SigstoreTufClient
    extends java.lang.Object
    Wrapper around Updater that provides access to sigstore specific metadata items in a convenient API.
    • 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

      • update

        public void update()
                    throws java.io.IOException,
                           java.security.NoSuchAlgorithmException,
                           java.security.spec.InvalidKeySpecException,
                           java.security.InvalidKeyException,
                           java.security.cert.CertificateException
        Update the tuf metadata if the cache has not been updated for at least cacheValidity defined on the client.
        Throws:
        java.io.IOException
        java.security.NoSuchAlgorithmException
        java.security.spec.InvalidKeySpecException
        java.security.InvalidKeyException
        java.security.cert.CertificateException
      • forceUpdate

        public void forceUpdate()
                         throws java.io.IOException,
                                java.security.NoSuchAlgorithmException,
                                java.security.spec.InvalidKeySpecException,
                                java.security.InvalidKeyException,
                                java.security.cert.CertificateException
        Force an update, ignoring any cache validity.
        Throws:
        java.io.IOException
        java.security.NoSuchAlgorithmException
        java.security.spec.InvalidKeySpecException
        java.security.InvalidKeyException
        java.security.cert.CertificateException