Class OCSPFirstRevocationDataLoadingStrategy
java.lang.Object
eu.europa.esig.dss.spi.validation.RevocationDataLoadingStrategy
eu.europa.esig.dss.spi.validation.OCSPFirstRevocationDataLoadingStrategy
This class fetches firstly OCSP token response, if not available, tries CRL and returns the first succeeded result
NOTE: This implementation is use by default for revocation retrieving
-
Field Summary
Fields inherited from class eu.europa.esig.dss.spi.validation.RevocationDataLoadingStrategy
crlSource, fallbackEnabled, ocspSource, revocationDataVerifier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetRevocationToken
(CertificateToken certificateToken, CertificateToken issuerToken) This method retrieves aRevocationToken
for the given certificateTokenMethods inherited from class eu.europa.esig.dss.spi.validation.RevocationDataLoadingStrategy
checkCRL, checkOCSP, isAcceptableToken
-
Constructor Details
-
OCSPFirstRevocationDataLoadingStrategy
public OCSPFirstRevocationDataLoadingStrategy()Default constructor
-
-
Method Details
-
getRevocationToken
public RevocationToken getRevocationToken(CertificateToken certificateToken, CertificateToken issuerToken) Description copied from class:RevocationDataLoadingStrategy
This method retrieves aRevocationToken
for the given certificateToken- Specified by:
getRevocationToken
in classRevocationDataLoadingStrategy
- Parameters:
certificateToken
- TheCertificateToken
for which the request is madeissuerToken
- TheCertificateToken
which is the issuer of the certificateToken- Returns:
- an instance of
RevocationToken
-