Class TokenStatus

java.lang.Object
eu.europa.esig.dss.alert.status.MessageStatus
eu.europa.esig.dss.alert.status.ObjectStatus
eu.europa.esig.dss.validation.status.TokenStatus
All Implemented Interfaces:
eu.europa.esig.dss.alert.status.Status
Direct Known Subclasses:
RevocationFreshnessStatus

public class TokenStatus extends eu.europa.esig.dss.alert.status.ObjectStatus
Contains tokens concerned by an occurred event and corresponding information about them
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor instantiating an empty map of related tokens
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addRelatedTokenAndErrorMessage(eu.europa.esig.dss.model.x509.Token token, String errorMessage)
    Adds concerned token and information about the occurred event
    getMessageForToken(eu.europa.esig.dss.model.x509.Token token)
    Returns error message for the given token
    Collection<eu.europa.esig.dss.model.x509.Token>
    Returns a collection of tokens concerned by failure of the processed check
    boolean
     

    Methods inherited from class eu.europa.esig.dss.alert.status.ObjectStatus

    addRelatedObjectIdentifierAndErrorMessage, getErrorString, getMessageForObjectWithId, getRelatedObjectIds, objectMapToString

    Methods inherited from class eu.europa.esig.dss.alert.status.MessageStatus

    getMessage, setMessage, toString

    Methods inherited from class java.lang.Object

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

    • TokenStatus

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

    • addRelatedTokenAndErrorMessage

      public void addRelatedTokenAndErrorMessage(eu.europa.esig.dss.model.x509.Token token, String errorMessage)
      Adds concerned token and information about the occurred event
      Parameters:
      token - Token
      errorMessage - String message
    • getRelatedTokens

      public Collection<eu.europa.esig.dss.model.x509.Token> getRelatedTokens()
      Returns a collection of tokens concerned by failure of the processed check
      Returns:
      a collection of Tokens
    • getMessageForToken

      public String getMessageForToken(eu.europa.esig.dss.model.x509.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()
      Specified by:
      isEmpty in interface eu.europa.esig.dss.alert.status.Status
      Overrides:
      isEmpty in class eu.europa.esig.dss.alert.status.ObjectStatus