Class RoleExpiredException

  • All Implemented Interfaces:
    java.io.Serializable

    public class RoleExpiredException
    extends TufException
    Thrown when the local trusted role is expired and no valid un-expired new role is found on the remote mirror. TODO: add role type to exception message.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RoleExpiredException​(java.lang.String mirrorUrl, java.time.ZonedDateTime updateTime, java.time.ZonedDateTime roleExpirationTime)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMirrorUrl()  
      java.time.ZonedDateTime getRoleExpirationTime()  
      java.time.ZonedDateTime getUpdateTime()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RoleExpiredException

        public RoleExpiredException​(java.lang.String mirrorUrl,
                                    java.time.ZonedDateTime updateTime,
                                    java.time.ZonedDateTime roleExpirationTime)
    • Method Detail

      • getMirrorUrl

        public java.lang.String getMirrorUrl()
      • getUpdateTime

        public java.time.ZonedDateTime getUpdateTime()
      • getRoleExpirationTime

        public java.time.ZonedDateTime getRoleExpirationTime()