Class RevocationFreshnessStatus
java.lang.Object
eu.europa.esig.dss.alert.status.MessageStatus
eu.europa.esig.dss.alert.status.ObjectStatus
eu.europa.esig.dss.validation.status.TokenStatus
eu.europa.esig.dss.validation.status.RevocationFreshnessStatus
- All Implemented Interfaces:
Status
Contains information about the performed revocation freshness check
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTokenAndRevocationNextUpdateTime
(Token token, Date revocationNextUpdate) Adds concerned token and nextUpdate time of the revocation dataThis method returns a complete error message computed from the mainmessage
and subMessages from the different objectsReturns 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 enoughReturns 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)Methods inherited from class eu.europa.esig.dss.validation.status.TokenStatus
addRelatedTokenAndErrorMessage, getMessageForToken, getRelatedTokens, isEmpty
Methods inherited from class eu.europa.esig.dss.alert.status.ObjectStatus
addRelatedObjectIdentifierAndErrorMessage, getMessageForObjectWithId, getRelatedObjectIds, objectMapToString
Methods inherited from class eu.europa.esig.dss.alert.status.MessageStatus
getMessage, setMessage, toString
-
Constructor Details
-
RevocationFreshnessStatus
public RevocationFreshnessStatus()Default constructor initializing an empty map
-
-
Method Details
-
addTokenAndRevocationNextUpdateTime
Adds concerned token and nextUpdate time of the revocation data -
getTokenRevocationNextUpdateTime
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) -
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
Description copied from interface:Status
This method returns a complete error message computed from the mainmessage
and subMessages from the different objects- Specified by:
getErrorString
in interfaceStatus
- Overrides:
getErrorString
in classObjectStatus
- Returns:
String
-