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
public class OCSPCertificateSource extends RevocationCertificateSource
Represents a Source of certificates embedded into an OCSP Token
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description OCSPCertificateSource(org.bouncycastle.cert.ocsp.BasicOCSPResp basicOCSPResp)
-
Method Summary
Modifier and Type Method Description CandidatesForSigningCertificate
getCandidatesForSigningCertificate(CertificateToken certificateIssuer)
Returns candidates for the OCSP Response's signing certificateCertificateSourceType
getCertificateSourceType()
This 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
Methods inherited from class eu.europa.esig.dss.spi.x509.CommonCertificateSource
addCertificate, getByCertificateIdentifier, getByPublicKey, getBySki, getBySubject, getCertificates, getEntities, getNumberOfCertificates, getNumberOfEntities, isAllSelfSigned, isKnown, isTrusted, reset
-
Constructor Details
-
OCSPCertificateSource
public OCSPCertificateSource(org.bouncycastle.cert.ocsp.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
-