Package eu.europa.esig.dss.spi.x509
Class AlternateUrlsSourceAdapter<T extends RevocationToken>
- java.lang.Object
-
- eu.europa.esig.dss.spi.x509.AlternateUrlsSourceAdapter<T>
-
- Type Parameters:
T- a sub-class ofRevocationToken
- All Implemented Interfaces:
RevocationSource<T>,RevocationSourceAlternateUrlsSupport<T>,Serializable
public class AlternateUrlsSourceAdapter<T extends RevocationToken> extends Object implements RevocationSourceAlternateUrlsSupport<T>
This class allows to inject alternative urls to collect revocation data. This is mainly used to collect revocations from discovered urls in the trusted lists (supplyPoint).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AlternateUrlsSourceAdapter(RevocationSourceAlternateUrlsSupport<T> source, List<String> alternateUrls)
-
Method Summary
Modifier and Type Method Description TgetRevocationToken(CertificateToken certificateToken, CertificateToken issuerCertificateToken)This method retrieves aRevocationTokenfor the certificateTokenTgetRevocationToken(CertificateToken certificateToken, CertificateToken issuerCertificateToken, List<String> alternativeUrls)Gets anRevocationTokenfor the given certificate / issuer's certificate couple.
-
-
-
Constructor Detail
-
AlternateUrlsSourceAdapter
public AlternateUrlsSourceAdapter(RevocationSourceAlternateUrlsSupport<T> source, List<String> alternateUrls)
-
-
Method Detail
-
getRevocationToken
public T getRevocationToken(CertificateToken certificateToken, CertificateToken issuerCertificateToken)
Description copied from interface:RevocationSourceThis method retrieves aRevocationTokenfor the certificateToken- Specified by:
getRevocationTokenin interfaceRevocationSource<T extends RevocationToken>- Parameters:
certificateToken- TheCertificateTokenfor which the request is madeissuerCertificateToken- TheCertificateTokenwhich is the issuer of the certificateToken- Returns:
- an instance of
RevocationToken
-
getRevocationToken
public T getRevocationToken(CertificateToken certificateToken, CertificateToken issuerCertificateToken, List<String> alternativeUrls)
Description copied from interface:RevocationSourceAlternateUrlsSupportGets anRevocationTokenfor the given certificate / issuer's certificate couple. The coherence between the response and the request is checked.- Specified by:
getRevocationTokenin interfaceRevocationSourceAlternateUrlsSupport<T extends RevocationToken>- Parameters:
certificateToken- TheCertificateTokenfor which the request is madeissuerCertificateToken- TheCertificateTokenwhich is the issuer of the certificateTokenalternativeUrls- The list of alternative urls to call- Returns:
RevocationTokencontaining information about the validity of the cert
-
-