Class RevocationFreshnessStatus

All Implemented Interfaces:
Status

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(Token token, Date revocationNextUpdate)
      Adds concerned token and nextUpdate time of the revocation data
      Parameters:
      token - Token
      revocationNextUpdate - String message
    • getTokenRevocationNextUpdateTime

      public Date getTokenRevocationNextUpdateTime(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()
      Description copied from interface: Status
      This method returns a complete error message computed from the main message and subMessages from the different objects
      Specified by:
      getErrorString in interface Status
      Overrides:
      getErrorString in class ObjectStatus
      Returns:
      String