Package eu.europa.esig.dss.spi.x509
Class AlternateUrlsSourceAdapter<R extends Revocation>
java.lang.Object
eu.europa.esig.dss.spi.x509.AlternateUrlsSourceAdapter<R>
- Type Parameters:
R- a sub-class ofRevocation
- All Implemented Interfaces:
RevocationSource<R>,RevocationSourceAlternateUrlsSupport<R>,Serializable
public class AlternateUrlsSourceAdapter<R extends Revocation> extends Object implements RevocationSourceAlternateUrlsSupport<R>
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<R> source, List<String> alternateUrls) -
Method Summary
Modifier and Type Method Description RevocationToken<R>getRevocationToken(CertificateToken certificateToken, CertificateToken issuerCertificateToken)This method retrieves aRevocationTokenfor the certificateTokenRevocationToken<R>getRevocationToken(CertificateToken certificateToken, CertificateToken issuerCertificateToken, List<String> alternativeUrls)Gets anRevocationTokenfor the given certificate / issuer's certificate couple.
-
Constructor Details
-
AlternateUrlsSourceAdapter
public AlternateUrlsSourceAdapter(RevocationSourceAlternateUrlsSupport<R> source, List<String> alternateUrls)
-
-
Method Details
-
getRevocationToken
public RevocationToken<R> getRevocationToken(CertificateToken certificateToken, CertificateToken issuerCertificateToken)Description copied from interface:RevocationSourceThis method retrieves aRevocationTokenfor the certificateToken- Specified by:
getRevocationTokenin interfaceRevocationSource<R extends Revocation>- Parameters:
certificateToken- TheCertificateTokenfor which the request is madeissuerCertificateToken- TheCertificateTokenwhich is the issuer of the certificateToken- Returns:
- an instance of
RevocationToken
-
getRevocationToken
public RevocationToken<R> 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<R extends Revocation>- 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
-