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
ConstructorsConstructorDescriptionDefault constructor instantiating an empty map of related tokens -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRelatedTokenAndErrorMessage(eu.europa.esig.dss.model.x509.Token token, String errorMessage) Adds concerned token and information about the occurred eventgetMessageForToken(eu.europa.esig.dss.model.x509.Token token) Returns error message for the given tokenCollection<eu.europa.esig.dss.model.x509.Token>Returns a collection of tokens concerned by failure of the processed checkbooleanisEmpty()Methods inherited from class eu.europa.esig.dss.alert.status.ObjectStatus
addRelatedObjectIdentifierAndErrorMessage, getErrorString, getMessageForObjectWithId, getRelatedObjectIds, objectMapToStringMethods 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
public void addRelatedTokenAndErrorMessage(eu.europa.esig.dss.model.x509.Token token, String errorMessage) Adds concerned token and information about the occurred event- Parameters:
token-TokenerrorMessage-Stringmessage
-
getRelatedTokens
Returns a collection of tokens concerned by failure of the processed check- Returns:
- a collection of
Tokens
-
getMessageForToken
Returns error message for the given token- Parameters:
token-Tokento get caused error message for- Returns:
Stringerror message
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceeu.europa.esig.dss.alert.status.Status- Overrides:
isEmptyin classeu.europa.esig.dss.alert.status.ObjectStatus
-