Package eu.europa.esig.dss.validation
Class ListOCSPSource
java.lang.Object
eu.europa.esig.dss.validation.ListOCSPSource
- All Implemented Interfaces:
OCSPSource
,RevocationSource<OCSPToken>
,Serializable
public class ListOCSPSource extends Object implements OCSPSource
This class allows to handle a list OCSP source.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ListOCSPSource()
ListOCSPSource(OfflineOCSPSource ocspSource)
This constructor allows to initialize the list with anOfflineOCSPSource
. -
Method Summary
Modifier and Type Method Description void
add(OfflineOCSPSource ocspSource)
void
addAll(ListOCSPSource listOCSPSources)
void
addAll(List<OfflineOCSPSource> ocspSources)
List<OCSPRef>
findRefsForRevocationToken(OCSPToken revocationToken)
Set<OCSPToken>
getAllOCSPTokens()
OCSPResponseBinary
getIdentifier(Digest refDigest)
OCSPResponseBinary
getIdentifier(OCSPRef ocspRef)
OCSPRef
getOCSPRefByDigest(Digest refDigest)
List<OCSPResponseBinary>
getOCSPResponsesList()
List<OCSPRef>
getOrphanOCSPRefs()
List<OCSPRef>
getReferencesForOCSPIdentifier(OCSPResponseBinary revocationIdentifier)
Set<RevocationOrigin>
getRevocationOrigins(OCSPResponseBinary identifier)
OCSPToken
getRevocationToken(CertificateToken certificateToken, CertificateToken issuerCertificateToken)
This method retrieves aRevocationToken
for the certificateTokenList<OfflineOCSPSource>
getSources()
boolean
isEmpty()
-
Constructor Details
-
ListOCSPSource
public ListOCSPSource() -
ListOCSPSource
This constructor allows to initialize the list with anOfflineOCSPSource
.- Parameters:
ocspSource
- an offline ocsp source
-
-
Method Details
-
add
-
addAll
-
addAll
-
getSources
-
isEmpty
public boolean isEmpty() -
getRevocationOrigins
-
getAllOCSPTokens
-
findRefsForRevocationToken
-
getReferencesForOCSPIdentifier
-
getOrphanOCSPRefs
-
getOCSPResponsesList
-
getRevocationToken
public OCSPToken getRevocationToken(CertificateToken certificateToken, CertificateToken issuerCertificateToken)Description copied from interface:RevocationSource
This method retrieves aRevocationToken
for the certificateToken- Specified by:
getRevocationToken
in interfaceRevocationSource<OCSPToken>
- Parameters:
certificateToken
- TheCertificateToken
for which the request is madeissuerCertificateToken
- TheCertificateToken
which is the issuer of the certificateToken- Returns:
- an instance of
RevocationToken
-
getIdentifier
-
getIdentifier
-
getOCSPRefByDigest
-