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 aRevocationToken
for the certificateTokenRevocationToken<R>
getRevocationToken(CertificateToken certificateToken, CertificateToken issuerCertificateToken, List<String> alternativeUrls)
Gets anRevocationToken
for 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:RevocationSource
This method retrieves aRevocationToken
for the certificateToken- Specified by:
getRevocationToken
in interfaceRevocationSource<R extends Revocation>
- Parameters:
certificateToken
- TheCertificateToken
for which the request is madeissuerCertificateToken
- TheCertificateToken
which 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:RevocationSourceAlternateUrlsSupport
Gets anRevocationToken
for the given certificate / issuer's certificate couple. The coherence between the response and the request is checked.- Specified by:
getRevocationToken
in interfaceRevocationSourceAlternateUrlsSupport<R extends Revocation>
- Parameters:
certificateToken
- TheCertificateToken
for which the request is madeissuerCertificateToken
- TheCertificateToken
which is the issuer of the certificateTokenalternativeUrls
- The list of alternative urls to call- Returns:
RevocationToken
containing information about the validity of the cert
-