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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTokenAndRevocationNextUpdateTime(Token token, Date revocationNextUpdate) Adds concerned token and nextUpdate time of the revocation dataThis method returns a complete error message computed from the mainmessageand 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, isEmptyMethods inherited from class eu.europa.esig.dss.alert.status.ObjectStatus
addRelatedObjectIdentifierAndErrorMessage, getMessageForObjectWithId, getRelatedObjectIds, objectMapToStringMethods 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:StatusThis method returns a complete error message computed from the mainmessageand subMessages from the different objects- Specified by:
getErrorStringin interfaceStatus- Overrides:
getErrorStringin classObjectStatus- Returns:
String
-