Class OCSPCertificateSource
java.lang.Object
eu.europa.esig.dss.spi.x509.CommonCertificateSource
eu.europa.esig.dss.spi.x509.TokenCertificateSource
eu.europa.esig.dss.spi.x509.revocation.RevocationCertificateSource
eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPCertificateSource
- All Implemented Interfaces:
CertificateSource
,Serializable
Represents a Source of certificates embedded into an OCSP Token
- See Also:
-
Field Summary
Fields inherited from class eu.europa.esig.dss.spi.x509.CommonCertificateSource
certificateMatcher
-
Constructor Summary
ConstructorDescriptionOCSPCertificateSource
(org.bouncycastle.cert.ocsp.BasicOCSPResp basicOCSPResp) Default constructor -
Method Summary
Modifier and TypeMethodDescriptiongetCandidatesForSigningCertificate
(CertificateToken certificateIssuer) Returns candidates for the OCSP Response's signing certificateThis method returns the certificate source type associated to the implementation class.Methods inherited from class eu.europa.esig.dss.spi.x509.TokenCertificateSource
addCertificate, addCertificateIdentifier, addCertificateRef, findTokensFromRefs, getAllCertificateIdentifiers, getAllCertificateRefs, getCertificateRefOrigins, getCertificateRefsByOrigin, getCertificateToken, getCertificateTokensByOrigin, getCurrentCertificateIdentifier, getOrphanCertificateRefs, getReferencesForCertificateToken, isOrphan
Methods inherited from class eu.europa.esig.dss.spi.x509.CommonCertificateSource
addCertificate, doesCertificateReferenceMatch, findTokensFromCertRef, getByCertificateDigest, getByPublicKey, getBySignerIdentifier, getBySki, getBySubject, getCertificates, getEntities, getNumberOfCertificates, getNumberOfEntities, isAllSelfSigned, isCertificateSourceEqual, isCertificateSourceEquivalent, isKnown, isTrusted, removeCertificate, reset
-
Constructor Details
-
OCSPCertificateSource
public OCSPCertificateSource(org.bouncycastle.cert.ocsp.BasicOCSPResp basicOCSPResp) Default constructor- Parameters:
basicOCSPResp
-BasicOCSPResp
-
-
Method Details
-
getCandidatesForSigningCertificate
public CandidatesForSigningCertificate getCandidatesForSigningCertificate(CertificateToken certificateIssuer) Returns candidates for the OCSP Response's signing certificate- Parameters:
certificateIssuer
-CertificateToken
the issuer of a certificate covered by the OCSP- Returns:
CandidatesForSigningCertificate
-
getCertificateSourceType
Description copied from interface:CertificateSource
This method returns the certificate source type associated to the implementation class.- Specified by:
getCertificateSourceType
in interfaceCertificateSource
- Overrides:
getCertificateSourceType
in classCommonCertificateSource
- Returns:
- the certificate origin
-