Class RevocationFreshnessStatus

java.lang.Object
eu.europa.esig.dss.spi.validation.status.TokenStatus
eu.europa.esig.dss.spi.validation.status.RevocationFreshnessStatus

public class RevocationFreshnessStatus extends TokenStatus
Contains information about the performed revocation freshness check
  • Constructor Details

    • RevocationFreshnessStatus

      public RevocationFreshnessStatus()
      Default constructor initializing an empty map
  • Method Details

    • addTokenAndRevocationNextUpdateTime

      public void addTokenAndRevocationNextUpdateTime(eu.europa.esig.dss.model.x509.Token token, Date revocationNextUpdate)
      Adds concerned token and nextUpdate time of the revocation data
      Parameters:
      token - Token
      revocationNextUpdate - String message
    • getTokenRevocationNextUpdateTime

      public Date getTokenRevocationNextUpdateTime(eu.europa.esig.dss.model.x509.Token token)
      Returns nextUpdate time of revocation data for the given token NOTE: returns Date only if the obtained revocation data is not fresh enough (otherwise returns null)
      Parameters:
      token - Token to get related revocation data's nextUpdate time
      Returns:
      Date
    • getMinimalNextUpdateTime

      public Date getMinimalNextUpdateTime()
      Returns minimal time when revocation data should be updated for all concerned tokens NOTE: returns NULL if no suitable revocation data found or if the revocation data is fresh enough
      Returns:
      Date
    • getErrorString

      public String getErrorString()
    • addRelatedObjectIdentifierAndErrorMessage

      public void addRelatedObjectIdentifierAndErrorMessage(String arg0, String arg1)
    • getMessageForObjectWithId

      public String getMessageForObjectWithId(String arg0)
    • getRelatedObjectIds

      public Collection<String> getRelatedObjectIds()
    • objectMapToString

      protected String objectMapToString()
    • getMessage

      public String getMessage()
    • setMessage

      public void setMessage(String arg0)
    • toString

      public String toString()
      Overrides:
      toString in class Object