Package eu.europa.esig.dss.spi.x509
Class CompositeRevocationSource<T extends Revocation>
java.lang.Object
eu.europa.esig.dss.spi.x509.CompositeRevocationSource<T>
- Type Parameters:
T
-Revocation
- All Implemented Interfaces:
RevocationSource<T>
,Serializable
public class CompositeRevocationSource<T extends Revocation>
extends Object
implements RevocationSource<T>
This class allows to retrieve a RevocationToken with different sources. The composite will try all sources until to get a
non-empty response.
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault constructor instantiating object with null values -
Method Summary
Modifier and TypeMethodDescriptiongetRevocationToken
(CertificateToken certificateToken, CertificateToken issuerCertificateToken) This method retrieves aRevocationToken
for the certificateTokenvoid
setSources
(Map<String, RevocationSource<T>> compositeRevocationSources) This setter allows to provide multiple revocationSources.
-
Constructor Details
-
CompositeRevocationSource
public CompositeRevocationSource()Default constructor instantiating object with null values
-
-
Method Details
-
setSources
This setter allows to provide multiple revocationSources.- Parameters:
compositeRevocationSources
- aMap
of String and RevocationSources with a label and its corresponding source
-
getRevocationToken
public RevocationToken<T> getRevocationToken(CertificateToken certificateToken, CertificateToken issuerCertificateToken) Description copied from interface:RevocationSource
This method retrieves aRevocationToken
for the certificateToken- Specified by:
getRevocationToken
in interfaceRevocationSource<T extends Revocation>
- Parameters:
certificateToken
- TheCertificateToken
for which the request is madeissuerCertificateToken
- TheCertificateToken
which is the issuer of the certificateToken- Returns:
- an instance of
RevocationToken
-