Class Updater


  • public class Updater
    extends java.lang.Object
    Tuf 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 class  Updater.Builder  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Updater.Builder builder()  
      void downloadTarget​(java.lang.String targetName)
      Download a single target defined in targets.
      void update()
      Update metadata and download all targets.
      void updateMeta()
      Update just metadata but do not download targets.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • update

        public void update()
                    throws java.io.IOException,
                           java.security.NoSuchAlgorithmException,
                           java.security.spec.InvalidKeySpecException,
                           java.security.InvalidKeyException
        Update metadata and download all targets.
        Throws:
        java.io.IOException
        java.security.NoSuchAlgorithmException
        java.security.spec.InvalidKeySpecException
        java.security.InvalidKeyException
      • updateMeta

        public void updateMeta()
                        throws java.io.IOException,
                               java.security.NoSuchAlgorithmException,
                               java.security.spec.InvalidKeySpecException
        Update just metadata but do not download targets.
        Throws:
        java.io.IOException
        java.security.NoSuchAlgorithmException
        java.security.spec.InvalidKeySpecException
      • downloadTarget

        public void downloadTarget​(java.lang.String targetName)
                            throws java.io.IOException,
                                   java.security.NoSuchAlgorithmException,
                                   java.security.spec.InvalidKeySpecException
        Download a single target defined in targets. Does not handle delegated targets.
        Throws:
        java.io.IOException
        java.security.NoSuchAlgorithmException
        java.security.spec.InvalidKeySpecException