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:
eu.europa.esig.dss.alert.status.Status
Contains information about the performed revocation freshness check
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTokenAndRevocationNextUpdateTime(eu.europa.esig.dss.model.x509.Token token, Date revocationNextUpdate) Adds concerned token and nextUpdate time of the revocation dataReturns 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 enoughgetTokenRevocationNextUpdateTime(eu.europa.esig.dss.model.x509.Token token) 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)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
public void addTokenAndRevocationNextUpdateTime(eu.europa.esig.dss.model.x509.Token token, Date revocationNextUpdate) Adds concerned token and nextUpdate time of the revocation data- Parameters:
token-TokenrevocationNextUpdate-Stringmessage
-
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)- Parameters:
token-Tokento get related revocation data's nextUpdate time- Returns:
Date
-
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
- Specified by:
getErrorStringin interfaceeu.europa.esig.dss.alert.status.Status- Overrides:
getErrorStringin classeu.europa.esig.dss.alert.status.ObjectStatus
-