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
ConstructorDescriptionPKIDelegatedOCSPSource
(CertEntityRepository certEntityRepository) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected CertEntity
getOcspResponder
(CertificateToken certificateToken, CertificateToken issuerCertificateToken) Returns aCertEntity
to be used as an OCSP Response issuer.void
setOcspResponder
(CertEntity ocspResponder) Sets the OCSP ResponderCertEntity
to sign the generated OCSP responses.void
setOcspResponders
(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 CACertEntity
s and delegated OCSP ResponderCertEntity
s
-
setOcspResponder
Description copied from class:PKIOCSPSource
Sets the OCSP ResponderCertEntity
to sign the generated OCSP responses. If not defined (or set to NULL), will use the certificate's issuer certificate as the OCSP responder.- Overrides:
setOcspResponder
in classPKIOCSPSource
- Parameters:
ocspResponder
-CertEntity
to issue OCSP responses
-
getOcspResponder
protected CertEntity getOcspResponder(CertificateToken certificateToken, CertificateToken issuerCertificateToken) Description copied from class:PKIOCSPSource
Returns aCertEntity
to be used as an OCSP Response issuer.- Overrides:
getOcspResponder
in classPKIOCSPSource
- Parameters:
certificateToken
-CertificateToken
to request OCSP Response forissuerCertificateToken
-CertificateToken
issued thecertificateToken
- Returns:
CertEntity
representing the entry to be used as an issuer of the OCSP Response
-