public class CommonCertificateVerifier extends Object implements CertificateVerifier
DataLoader should be provided to give access to the certificates through AIA.| Constructor and Description |
|---|
CommonCertificateVerifier()
The default constructor.
|
CommonCertificateVerifier(boolean simpleCreationOnly)
This constructor allows to create
CommonCertificateVerifier without DataLoader. |
CommonCertificateVerifier(CertificateSource trustedCertSource,
CRLSource crlSource,
OCSPSource ocspSource,
DataLoader dataLoader)
The constructor with key parameters.
|
| Modifier and Type | Method and Description |
|---|---|
CertificatePool |
createValidationPool()
This method creates the validation pool of certificates which is used
during the validation process.
|
CertificateSource |
getAdjunctCertSource()
Returns the adjunct certificates source associated with this verifier.
|
CRLSource |
getCrlSource()
Returns the CRL source associated with this verifier.
|
DataLoader |
getDataLoader()
The data loader used to access AIA certificate source.
|
OCSPSource |
getOcspSource()
Returns the OCSP source associated with this verifier.
|
ListCRLSource |
getSignatureCRLSource()
This method returns the CRL source (information extracted from
signatures).
|
ListOCSPSource |
getSignatureOCSPSource()
This method returns the OCSP source (information extracted from
signatures).
|
CertificateSource |
getTrustedCertSource()
Returns the trusted certificates source associated with this verifier.
|
void |
setAdjunctCertSource(CertificateSource adjunctCertSource)
Associates an adjunct certificates source to this verifier.
|
void |
setCrlSource(CRLSource crlSource)
Defines the source of CRL used by this class
|
void |
setDataLoader(DataLoader dataLoader)
The data loader used to access AIA certificate source.
|
void |
setOcspSource(OCSPSource ocspSource)
Defines the source of OCSP used by this class
|
void |
setSignatureCRLSource(ListCRLSource signatureCRLSource)
This method allows to set the CRL source (information extracted from
signatures).
|
void |
setSignatureOCSPSource(ListOCSPSource signatureOCSPSource)
This method allows to set the OCSP source (information extracted from
signatures).
|
void |
setTrustedCertSource(CertificateSource trustedCertSource)
Defines how the certificates from the Trusted Lists are retrieved.
|
public CommonCertificateVerifier()
DataLoader is created to allow the retrieval of certificates through AIA.public CommonCertificateVerifier(boolean simpleCreationOnly)
CommonCertificateVerifier without DataLoader. It means that
only a profile -B signatures can be created.simpleCreationOnly - if true the CommonCertificateVerifier will not contain DataLoader.public CommonCertificateVerifier(CertificateSource trustedCertSource, CRLSource crlSource, OCSPSource ocspSource, DataLoader dataLoader)
trustedCertSource - the reference to the trusted certificate source.crlSource - contains the reference to the OCSPSource.ocspSource - contains the reference to the CRLSource.dataLoader - contains the reference to a data loader used to access AIA certificate source.public CertificateSource getTrustedCertSource()
CertificateVerifiergetTrustedCertSource in interface CertificateVerifierpublic OCSPSource getOcspSource()
CertificateVerifiergetOcspSource in interface CertificateVerifierpublic CRLSource getCrlSource()
CertificateVerifiergetCrlSource in interface CertificateVerifierpublic void setCrlSource(CRLSource crlSource)
setCrlSource in interface CertificateVerifiercrlSource - the crlSource to setpublic void setOcspSource(OCSPSource ocspSource)
setOcspSource in interface CertificateVerifierocspSource - the ocspSource to setpublic void setTrustedCertSource(CertificateSource trustedCertSource)
setTrustedCertSource in interface CertificateVerifiertrustedCertSource - The source of trusted certificates.public CertificateSource getAdjunctCertSource()
CertificateVerifiergetAdjunctCertSource in interface CertificateVerifierpublic void setAdjunctCertSource(CertificateSource adjunctCertSource)
CertificateVerifiersetAdjunctCertSource in interface CertificateVerifieradjunctCertSource - public DataLoader getDataLoader()
CertificateVerifiergetDataLoader in interface CertificateVerifierpublic void setDataLoader(DataLoader dataLoader)
CertificateVerifierCommonsHttpDataLoader is created.setDataLoader in interface CertificateVerifierpublic ListCRLSource getSignatureCRLSource()
CertificateVerifiergetSignatureCRLSource in interface CertificateVerifierpublic void setSignatureCRLSource(ListCRLSource signatureCRLSource)
CertificateVerifiersetSignatureCRLSource in interface CertificateVerifierpublic ListOCSPSource getSignatureOCSPSource()
CertificateVerifiergetSignatureOCSPSource in interface CertificateVerifierpublic void setSignatureOCSPSource(ListOCSPSource signatureOCSPSource)
CertificateVerifiersetSignatureOCSPSource in interface CertificateVerifierpublic CertificatePool createValidationPool()
CertificateVerifiercreateValidationPool in interface CertificateVerifierCopyright © 2018. All rights reserved.