Class PKIDelegatedOCSPSource
java.lang.Object
eu.europa.esig.dss.pki.x509.revocation.ocsp.PKIOCSPSource
eu.europa.esig.dss.pki.x509.revocation.ocsp.PKIDelegatedOCSPSource
- All Implemented Interfaces:
OCSPSource,RevocationSource<OCSP>,Serializable
The PkiOCSPSource class implements the OCSPSource interface for obtaining revocation tokens.
It retrieves OCSP responses for a given certificate by sending OCSP requests to a specified OCSP responder.
- See Also:
-
Field Summary
Fields inherited from class eu.europa.esig.dss.pki.x509.revocation.ocsp.PKIOCSPSource
certEntityRepository -
Constructor Summary
ConstructorsConstructorDescriptionPKIDelegatedOCSPSource(CertEntityRepository certEntityRepository) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected CertEntitygetOcspResponder(CertificateToken certificateToken, CertificateToken issuerCertificateToken) Returns aCertEntityto be used as an OCSP Response issuer.voidsetOcspResponder(CertEntity ocspResponder) Sets the OCSP ResponderCertEntityto sign the generated OCSP responses.voidsetOcspResponders(Map<CertEntity, CertEntity> ocspResponders) Sets a map of CA cert entities and their delegated OCSP RespondersMethods inherited from class eu.europa.esig.dss.pki.x509.revocation.ocsp.PKIOCSPSource
addRevocationStatusToOCSPResponse, buildOCSPRequest, buildOCSPResponse, canGenerate, getCertificateTokenRevocation, getNextUpdate, getProducedAtTime, getRespID, getRevocationToken, getSignatureAlgorithm, getThisUpdate, initBuilder, setDigestAlgorithm, setEncryptionAlgorithm, setMaskGenerationFunction, setNextUpdate, setProducedAtTime, setResponderIdByKey, setThisUpdate
-
Constructor Details
-
PKIDelegatedOCSPSource
Default constructor- Parameters:
certEntityRepository-CertEntityRepository
-
-
Method Details
-
setOcspResponders
Sets a map of CA cert entities and their delegated OCSP Responders- Parameters:
ocspResponders- a map between CACertEntitys and delegated OCSP ResponderCertEntitys
-
setOcspResponder
Description copied from class:PKIOCSPSourceSets the OCSP ResponderCertEntityto sign the generated OCSP responses. If not defined (or set to NULL), will use the certificate's issuer certificate as the OCSP responder.- Overrides:
setOcspResponderin classPKIOCSPSource- Parameters:
ocspResponder-CertEntityto issue OCSP responses
-
getOcspResponder
protected CertEntity getOcspResponder(CertificateToken certificateToken, CertificateToken issuerCertificateToken) Description copied from class:PKIOCSPSourceReturns aCertEntityto be used as an OCSP Response issuer.- Overrides:
getOcspResponderin classPKIOCSPSource- Parameters:
certificateToken-CertificateTokento request OCSP Response forissuerCertificateToken-CertificateTokenissued thecertificateToken- Returns:
CertEntityrepresenting the entry to be used as an issuer of the OCSP Response
-