Class TokenStatus
java.lang.Object
eu.europa.esig.dss.alert.status.MessageStatus
eu.europa.esig.dss.alert.status.ObjectStatus
eu.europa.esig.dss.spi.validation.status.TokenStatus
- All Implemented Interfaces:
Status
- Direct Known Subclasses:
RevocationFreshnessStatus
Contains tokens concerned by an occurred event and corresponding information about them
-
Constructor Summary
ConstructorDescriptionDefault constructor instantiating an empty map of related tokens -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRelatedTokenAndErrorMessage
(Token token, String errorMessage) Adds concerned token and information about the occurred eventgetMessageForToken
(Token token) Returns error message for the given tokenReturns a collection of tokens concerned by failure of the processed checkboolean
isEmpty()
Returns whether the object is not filled (all values are null)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
-
Constructor Details
-
TokenStatus
public TokenStatus()Default constructor instantiating an empty map of related tokens
-
-
Method Details
-
addRelatedTokenAndErrorMessage
-
getRelatedTokens
Returns a collection of tokens concerned by failure of the processed check- Returns:
- a collection of
Token
s
-
getMessageForToken
-
isEmpty
public boolean isEmpty()Description copied from interface:Status
Returns whether the object is not filled (all values are null)- Specified by:
isEmpty
in interfaceStatus
- Overrides:
isEmpty
in classObjectStatus
- Returns:
- TRUE if the Status is empty (underlying even did not occur), FALSE otherwise (event occurred)
-