Class TokenStatus

All Implemented Interfaces:
Status
Direct Known Subclasses:
RevocationFreshnessStatus

public class TokenStatus extends ObjectStatus
Contains tokens concerned by an occurred event and corresponding information about them
  • Constructor Details

    • TokenStatus

      public TokenStatus()
      Default constructor instantiating an empty map of related tokens
  • Method Details

    • addRelatedTokenAndErrorMessage

      public void addRelatedTokenAndErrorMessage(Token token, String errorMessage)
      Adds concerned token and information about the occurred event
      Parameters:
      token - Token
      errorMessage - String message
    • getRelatedTokens

      public Collection<Token> getRelatedTokens()
      Returns a collection of tokens concerned by failure of the processed check
      Returns:
      a collection of Tokens
    • getMessageForToken

      public String getMessageForToken(Token token)
      Returns error message for the given token
      Parameters:
      token - Token to get caused error message for
      Returns:
      String error message
    • isEmpty

      public boolean isEmpty()
      Description copied from interface: Status
      Returns whether the object is not filled (all values are null)
      Specified by:
      isEmpty in interface Status
      Overrides:
      isEmpty in class ObjectStatus
      Returns:
      TRUE if the Status is empty (underlying even did not occur), FALSE otherwise (event occurred)