Class ExternalResourcesOCSPSource
java.lang.Object
eu.europa.esig.dss.spi.x509.revocation.OfflineRevocationSource<OCSP>
eu.europa.esig.dss.spi.x509.revocation.ocsp.OfflineOCSPSource
eu.europa.esig.dss.spi.x509.revocation.ocsp.ExternalResourcesOCSPSource
- All Implemented Interfaces:
MultipleRevocationSource<OCSP>
,RevocationSource<OCSP>
,Serializable
This class is used to provide a collection of OCSP tokens by the user.
- See Also:
-
Constructor Summary
ConstructorDescriptionExternalResourcesOCSPSource
(DSSDocument... dssDocuments) This constructor loads the OCSP responses from an array ofDSSDocument
s.ExternalResourcesOCSPSource
(InputStream... inputStreams) This constructor loads the OCSP responses from an array ofInputStream
s.ExternalResourcesOCSPSource
(String... paths) This constructor loads the OCSP responses from an array ofString
s representing resources. -
Method Summary
Modifier and TypeMethodDescriptiongetRevocationTokens
(CertificateToken certificate, CertificateToken issuer) This method retrieves a list ofRevocationToken
for the certificateTokenMethods inherited from class eu.europa.esig.dss.spi.x509.revocation.OfflineRevocationSource
addBinary, addRevocation, addRevocation, addRevocationReference, findBinaryForReference, findRefsAndOriginsForBinary, findRefsAndOriginsForRevocationToken, getADBERevocationValuesBinaries, getADBERevocationValuesTokens, getAllReferencedRevocationBinaries, getAllRevocationBinaries, getAllRevocationBinariesWithOrigins, getAllRevocationReferences, getAllRevocationTokens, getAllRevocationTokensWithOrigins, getAttributeRevocationRefs, getAttributeRevocationValuesBinaries, getAttributeRevocationValuesTokens, getCMSSignedDataRevocationBinaries, getCMSSignedDataRevocationTokens, getCompleteRevocationRefs, getDSSDictionaryBinaries, getDSSDictionaryTokens, getOrphanRevocationReferencesWithOrigins, getRevocationReferencesWithOrigins, getRevocationToken, getRevocationValuesBinaries, getRevocationValuesTokens, getTimestampValidationDataBinaries, getTimestampValidationDataTokens, getUniqueRevocationTokensWithOrigins, getVRIDictionaryBinaries, getVRIDictionaryTokens, isEmpty, isOrphan
-
Constructor Details
-
ExternalResourcesOCSPSource
-
ExternalResourcesOCSPSource
This constructor loads the OCSP responses from an array ofInputStream
s.- Parameters:
inputStreams
-InputStream
(s)
-
ExternalResourcesOCSPSource
This constructor loads the OCSP responses from an array ofDSSDocument
s.- Parameters:
dssDocuments
-DSSDocument
(s)
-
-
Method Details
-
getRevocationTokens
public List<RevocationToken<OCSP>> getRevocationTokens(CertificateToken certificate, CertificateToken issuer) Description copied from interface:MultipleRevocationSource
This method retrieves a list ofRevocationToken
for the certificateToken- Specified by:
getRevocationTokens
in interfaceMultipleRevocationSource<OCSP>
- Overrides:
getRevocationTokens
in classOfflineOCSPSource
- Parameters:
certificate
- TheCertificateToken
for which the request is madeissuer
- TheCertificateToken
which is the issuer of the certificateToken- Returns:
- a list of
RevocationToken
-