Class CommonCertificateVerifier
java.lang.Object
eu.europa.esig.dss.spi.validation.CommonCertificateVerifier
- All Implemented Interfaces:
CertificateVerifier
This class provides the different sources used to verify the status of a certificate using the trust model. There are
four different types of sources to be defined:
- Trusted certificates source;
- Adjunct certificates source (not trusted);
- OCSP source;
- CRL source;
- AIA source to give access to the certificates through AIA.
- Trusted certificates source;
- Adjunct certificates source (not trusted);
- OCSP source;
- CRL source;
- AIA source to give access to the certificates through AIA.
-
Constructor Summary
ConstructorsConstructorDescriptionThe default constructor.CommonCertificateVerifier(boolean simpleCreationOnly) This constructor allows creating ofCommonCertificateVerifierwithoutDataLoader. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdjunctCertSources(CertificateSource... certSources) Adds adjunct certificate sources to an existing list of adjunct certificate sourcesvoidaddTrustedCertSources(CertificateSource... certSources) Adds trusted certificate sources to an existing list of trusted certificate sourcesReturns the list of adjunct certificate sources assigned to this verifier.Gets the AIASource used to load aeu.europa.esig.dss.model.x509.CertificateToken's issuer by defined AIA URI(s) within the tokenThis method returns the defined behavior on signature creation or augmentation with an expired signing-certificate (notAfter is before the current time).Deprecated.This method returns the defined execution behaviour on invalid signature.This method returns the defined execution behaviour on invalid timestamp.This method returns the defined execution behaviour on missing revocation data.This method returns the defined execution behaviour if no revocation data obtained with an issuance time after the bestSignatureTimeThis method returns the defined behavior on signature creation with a not yet valid signing-certificateThis method returns the defined execution behaviour on revoked certificate.This method returns the defined execution behaviour on uncovered POE (timestamp).This method returns the defined augmentation behaviour for a signature of a higher level or a document containing a such signature.This method returns the defined augmentation behaviour for a signature containing only self-signed certificate chains.This method returns the defined augmentation behaviour for a signature without certificates.Returns the CRL source associated with this verifier.Deprecated.Returns the OCSP source associated with this verifier.Returns a factory used to create revocation data loading strategy associated with this verifier.Returns aRevocationDataVerifierassociated with this verifier.Returns aTimestampTokenVerifierassociated with this verifier.Returns the trusted certificate sources associated with this verifier.booleanThis method returns true if revocation check is enabled for untrusted certificate chains.booleanDeprecated.booleanReturns whether revocation data still shall be returned if validation of requested revocation data failed (i.e. both for OCSP and CRL).voidsetAdjunctCertSources(CertificateSource... certSources) Sets multiple adjunct certificate sources.voidsetAdjunctCertSources(ListCertificateSource adjunctListCertificateSource) Sets a list of adjunct certificate sourcesvoidsetAIASource(AIASource aiaSource) Sets the AIASource used to load aeu.europa.esig.dss.model.x509.CertificateToken's issuer by defined AIA URI(s) within the tokenvoidsetAlertOnExpiredCertificate(StatusAlert alertOnExpiredCertificate) This method allows to change a behavior on signature creation or augmentation with an expired signing-certificate (notAfter is before the current time).voidsetAlertOnExpiredSignature(StatusAlert alertOnExpiredSignature) Deprecated.voidsetAlertOnInvalidSignature(StatusAlert alertOnInvalidSignature) This method allows to change the behavior on invalid signature (T/LT/LTA augmentation).voidsetAlertOnInvalidTimestamp(StatusAlert alertOnInvalidTimestamp) This method allows to change the behavior on invalid timestamp (LT/LTA augmentation).voidsetAlertOnMissingRevocationData(StatusAlert alertOnMissingRevocationData) This method allows to change the behavior on missing revocation data (LT/LTA augmentation).voidsetAlertOnNoRevocationAfterBestSignatureTime(StatusAlert alertOnNoRevocationAfterBestSignatureTime) This method allows to change the behavior on revocation data issued after a control time.voidsetAlertOnNotYetValidCertificate(StatusAlert alertOnNotYetValidCertificate) This method allows to change a behavior on signature creation with a not yet valid signing-certificate (notBefore is after the current time) Default :ExceptionOnStatusAlert- throw an exception.voidsetAlertOnRevokedCertificate(StatusAlert alertOnRevokedCertificate) This method allows to change the behavior on revoked certificates (LT/LTA augmentation).voidsetAlertOnUncoveredPOE(StatusAlert alertOnUncoveredPOE) This method allows to change the behavior on uncovered POE (timestamp).voidsetAugmentationAlertOnHigherSignatureLevel(StatusAlert augmentationAlertOnHigherSignatureLevel) This method allows to change the augmentation behaviour for a signature of a higher level or a document containing a such signature.voidsetAugmentationAlertOnSelfSignedCertificateChains(StatusAlert augmentationAlertOnSelfSignedCertificateChains) This method allows to change the augmentation behaviour for a signature containing only self-signed certificate chains.voidsetAugmentationAlertOnSignatureWithoutCertificates(StatusAlert augmentationAlertOnSignatureWithoutCertificates) This method allows to change the augmentation behaviour for a signature without certificates.voidsetCheckRevocationForUntrustedChains(boolean checkRevocationForUntrustedChains) This method allows enabling of revocation checking for untrusted certificate chains.voidsetCrlSource(RevocationSource<CRL> crlSource) Defines the source of CRL used by this classvoidsetDefaultDigestAlgorithm(DigestAlgorithm digestAlgorithm) Deprecated.voidsetExtractPOEFromUntrustedChains(boolean extractPOEFromUntrustedChains) Deprecated.voidsetOcspSource(RevocationSource<OCSP> ocspSource) Defines the source of OCSP used by this classvoidsetRevocationDataLoadingStrategyFactory(RevocationDataLoadingStrategyFactory revocationDataLoadingStrategyFactory) Creates a strategy used to fetch OCSP or CRL for certificate validation.voidsetRevocationDataVerifier(RevocationDataVerifier revocationDataVerifier) SetsRevocationDataVerifierused to validate acceptance of the retrieved (from offline or online sources) revocation data.voidsetRevocationFallback(boolean revocationFallback) Sets whether a revocation data still have to be returned to the validation process, in case validation of obtained revocation data has failed (i.e. both for OCSP and CRL).voidsetTimestampTokenVerifier(TimestampTokenVerifier timestampTokenVerifier) SetsTimestampTokenVerifierused to validate acceptance of the timestamp tokens encapsulated within the signature.voidsetTrustedCertSources(CertificateSource... certSources) Sets multiple trusted certificate sources.voidsetTrustedCertSources(ListCertificateSource trustedListCertificateSource) Sets a list of trusted certificate sources
-
Constructor Details
-
CommonCertificateVerifier
public CommonCertificateVerifier()The default constructor. TheDataLoaderis created to allow the retrieval of certificates through AIA. -
CommonCertificateVerifier
public CommonCertificateVerifier(boolean simpleCreationOnly) This constructor allows creating ofCommonCertificateVerifierwithoutDataLoader. It means that only a -B profile signature can be created.- Parameters:
simpleCreationOnly- if true theCommonCertificateVerifierwill not containAIASource.
-
-
Method Details
-
getCrlSource
Description copied from interface:CertificateVerifierReturns the CRL source associated with this verifier.- Specified by:
getCrlSourcein interfaceCertificateVerifier- Returns:
- the used CRL source for external access (web, filesystem, cached,...)
-
setCrlSource
Description copied from interface:CertificateVerifierDefines the source of CRL used by this class- Specified by:
setCrlSourcein interfaceCertificateVerifier- Parameters:
crlSource- the CRL source to set for external access (web, filesystem, cached,...)
-
getOcspSource
Description copied from interface:CertificateVerifierReturns the OCSP source associated with this verifier.- Specified by:
getOcspSourcein interfaceCertificateVerifier- Returns:
- the used OCSP source for external access (web, filesystem, cached,...)
-
setOcspSource
Description copied from interface:CertificateVerifierDefines the source of OCSP used by this class- Specified by:
setOcspSourcein interfaceCertificateVerifier- Parameters:
ocspSource- the OCSP source to set for external access (web, filesystem, cached,...)
-
getRevocationDataLoadingStrategyFactory
Description copied from interface:CertificateVerifierReturns a factory used to create revocation data loading strategy associated with this verifier.- Specified by:
getRevocationDataLoadingStrategyFactoryin interfaceCertificateVerifier- Returns:
- creates the defined strategy to fetch OCSP or CRL for certificate validation
-
setRevocationDataLoadingStrategyFactory
public void setRevocationDataLoadingStrategyFactory(RevocationDataLoadingStrategyFactory revocationDataLoadingStrategyFactory) Description copied from interface:CertificateVerifierCreates a strategy used to fetch OCSP or CRL for certificate validation. Default:OCSPFirstRevocationDataLoadingStrategyFactoryused to create a strategy to extract OCSP token first and CRL after- Specified by:
setRevocationDataLoadingStrategyFactoryin interfaceCertificateVerifier- Parameters:
revocationDataLoadingStrategyFactory-RevocationDataLoadingStrategyFactory
-
getRevocationDataVerifier
Description copied from interface:CertificateVerifierReturns aRevocationDataVerifierassociated with this verifier.- Specified by:
getRevocationDataVerifierin interfaceCertificateVerifier- Returns:
RevocationDataVerifier
-
setRevocationDataVerifier
Description copied from interface:CertificateVerifierSetsRevocationDataVerifierused to validate acceptance of the retrieved (from offline or online sources) revocation data. This class is used to verify revocation data extracted from the validating document itself, as well the revocation data retrieved from remote sources during the validation process.NOTE: It is not recommended to use the same instance of
RevocationDataVerifierwithin differentCertificateVerifiers, as it may lead to concurrency issues during the execution in multi-threaded environments. Please use a newRevocationDataVerifierper eachCertificateVerifier.- Specified by:
setRevocationDataVerifierin interfaceCertificateVerifier- Parameters:
revocationDataVerifier-RevocationDataVerifier
-
isRevocationFallback
public boolean isRevocationFallback()Description copied from interface:CertificateVerifierReturns whether revocation data still shall be returned if validation of requested revocation data failed (i.e. both for OCSP and CRL).- Specified by:
isRevocationFallbackin interfaceCertificateVerifier- Returns:
- revocation fallback
-
setRevocationFallback
public void setRevocationFallback(boolean revocationFallback) Description copied from interface:CertificateVerifierSets whether a revocation data still have to be returned to the validation process, in case validation of obtained revocation data has failed (i.e. both for OCSP and CRL). Default: FALSE (invalid revocation data not returned)NOTE: Revocation fallback is enforced to TRUE (return even invalid revocation data, when no valid found) on signature validation
- Specified by:
setRevocationFallbackin interfaceCertificateVerifier- Parameters:
revocationFallback- whether invalid revocation data shall be returned, when not valid revocation available
-
getTimestampTokenVerifier
Description copied from interface:CertificateVerifierReturns aTimestampTokenVerifierassociated with this verifier.- Specified by:
getTimestampTokenVerifierin interfaceCertificateVerifier- Returns:
TimestampTokenVerifier
-
setTimestampTokenVerifier
Description copied from interface:CertificateVerifierSetsTimestampTokenVerifierused to validate acceptance of the timestamp tokens encapsulated within the signature.NOTE: This object is not synchronized by default with the used XML Validation Policy. Please configure the object yourself in case a customized behavior is expected for acceptance of timestamp tokens.
- Specified by:
setTimestampTokenVerifierin interfaceCertificateVerifier- Parameters:
timestampTokenVerifier-TimestampTokenVerifier
-
getTrustedCertSources
Description copied from interface:CertificateVerifierReturns the trusted certificate sources associated with this verifier. These sources are used to identify the trusted anchors.- Specified by:
getTrustedCertSourcesin interfaceCertificateVerifier- Returns:
- the certificate sources which contain trusted certificates
-
setTrustedCertSources
Description copied from interface:CertificateVerifierSets multiple trusted certificate sources.- Specified by:
setTrustedCertSourcesin interfaceCertificateVerifier- Parameters:
certSources- The certificate sources with known trusted certificates
-
addTrustedCertSources
Description copied from interface:CertificateVerifierAdds trusted certificate sources to an existing list of trusted certificate sources- Specified by:
addTrustedCertSourcesin interfaceCertificateVerifier- Parameters:
certSources- The certificate sources with known trusted certificates
-
setTrustedCertSources
Description copied from interface:CertificateVerifierSets a list of trusted certificate sources- Specified by:
setTrustedCertSourcesin interfaceCertificateVerifier- Parameters:
trustedListCertificateSource-ListCertificateSourceof trusted cert sources
-
getAdjunctCertSources
Description copied from interface:CertificateVerifierReturns the list of adjunct certificate sources assigned to this verifier.- Specified by:
getAdjunctCertSourcesin interfaceCertificateVerifier- Returns:
- the certificate source which contains additional certificate (missing CA,...)
-
setAdjunctCertSources
Description copied from interface:CertificateVerifierSets multiple adjunct certificate sources.- Specified by:
setAdjunctCertSourcesin interfaceCertificateVerifier- Parameters:
certSources- the certificate sources with additional and/or missing certificates
-
addAdjunctCertSources
Description copied from interface:CertificateVerifierAdds adjunct certificate sources to an existing list of adjunct certificate sources- Specified by:
addAdjunctCertSourcesin interfaceCertificateVerifier- Parameters:
certSources- The certificate sources with additional certificates
-
setAdjunctCertSources
Description copied from interface:CertificateVerifierSets a list of adjunct certificate sources- Specified by:
setAdjunctCertSourcesin interfaceCertificateVerifier- Parameters:
adjunctListCertificateSource-ListCertificateSourceof adjunct cert sources
-
getAIASource
Description copied from interface:CertificateVerifierGets the AIASource used to load aeu.europa.esig.dss.model.x509.CertificateToken's issuer by defined AIA URI(s) within the token- Specified by:
getAIASourcein interfaceCertificateVerifier- Returns:
- aiaSource
AIASource
-
setAIASource
Description copied from interface:CertificateVerifierSets the AIASource used to load aeu.europa.esig.dss.model.x509.CertificateToken's issuer by defined AIA URI(s) within the token- Specified by:
setAIASourcein interfaceCertificateVerifier- Parameters:
aiaSource-AIASource
-
getAlertOnInvalidSignature
Description copied from interface:CertificateVerifierThis method returns the defined execution behaviour on invalid signature.- Specified by:
getAlertOnInvalidSignaturein interfaceCertificateVerifier- Returns:
StatusAlertto be processed in case of an invalid signature
-
setAlertOnInvalidSignature
Description copied from interface:CertificateVerifierThis method allows to change the behavior on invalid signature (T/LT/LTA augmentation). Default :ExceptionOnStatusAlert- throw an exception.- Specified by:
setAlertOnInvalidSignaturein interfaceCertificateVerifier- Parameters:
alertOnInvalidSignature- defines a behaviour in case of invalid signature
-
getAlertOnInvalidTimestamp
Description copied from interface:CertificateVerifierThis method returns the defined execution behaviour on invalid timestamp.- Specified by:
getAlertOnInvalidTimestampin interfaceCertificateVerifier- Returns:
StatusAlertto be processed in case of an invalid timestamp
-
setAlertOnInvalidTimestamp
Description copied from interface:CertificateVerifierThis method allows to change the behavior on invalid timestamp (LT/LTA augmentation). Default :ExceptionOnStatusAlert- throw an exception.- Specified by:
setAlertOnInvalidTimestampin interfaceCertificateVerifier- Parameters:
alertOnInvalidTimestamp- defines a behaviour in case of invalid timestamp
-
getAlertOnMissingRevocationData
Description copied from interface:CertificateVerifierThis method returns the defined execution behaviour on missing revocation data.- Specified by:
getAlertOnMissingRevocationDatain interfaceCertificateVerifier- Returns:
StatusAlertto be processed in case of missing revocation data
-
setAlertOnMissingRevocationData
Description copied from interface:CertificateVerifierThis method allows to change the behavior on missing revocation data (LT/LTA augmentation). Default :ExceptionOnStatusAlert- throw an exception.- Specified by:
setAlertOnMissingRevocationDatain interfaceCertificateVerifier- Parameters:
alertOnMissingRevocationData- defines a behaviour in case of missing revocation data
-
getAlertOnUncoveredPOE
Description copied from interface:CertificateVerifierThis method returns the defined execution behaviour on uncovered POE (timestamp).- Specified by:
getAlertOnUncoveredPOEin interfaceCertificateVerifier- Returns:
StatusAlertto be processed in case of uncovered POE
-
setAlertOnUncoveredPOE
Description copied from interface:CertificateVerifierThis method allows to change the behavior on uncovered POE (timestamp). Default :LogOnStatusAlert- log a warning.- Specified by:
setAlertOnUncoveredPOEin interfaceCertificateVerifier- Parameters:
alertOnUncoveredPOE- defines a behaviour in case of uncovered POE
-
getAlertOnRevokedCertificate
Description copied from interface:CertificateVerifierThis method returns the defined execution behaviour on revoked certificate.- Specified by:
getAlertOnRevokedCertificatein interfaceCertificateVerifier- Returns:
StatusAlertto be processed in case of revoked certificate
-
setAlertOnRevokedCertificate
Description copied from interface:CertificateVerifierThis method allows to change the behavior on revoked certificates (LT/LTA augmentation). Default :ExceptionOnStatusAlert- throw an exception.- Specified by:
setAlertOnRevokedCertificatein interfaceCertificateVerifier- Parameters:
alertOnRevokedCertificate- defines a behaviour in case of revoked certificate
-
getAlertOnNoRevocationAfterBestSignatureTime
Description copied from interface:CertificateVerifierThis method returns the defined execution behaviour if no revocation data obtained with an issuance time after the bestSignatureTime- Specified by:
getAlertOnNoRevocationAfterBestSignatureTimein interfaceCertificateVerifier- Returns:
StatusAlertto be processed in case of no revocation data after best signature time
-
setAlertOnNoRevocationAfterBestSignatureTime
public void setAlertOnNoRevocationAfterBestSignatureTime(StatusAlert alertOnNoRevocationAfterBestSignatureTime) Description copied from interface:CertificateVerifierThis method allows to change the behavior on revocation data issued after a control time. Default :LogOnStatusAlert- log a warning.- Specified by:
setAlertOnNoRevocationAfterBestSignatureTimein interfaceCertificateVerifier- Parameters:
alertOnNoRevocationAfterBestSignatureTime- defines a behaviour in case of no revocation data issued after the bestSignatureTime
-
getAlertOnExpiredSignature
Deprecated.Description copied from interface:CertificateVerifierThis method returns the defined execution behaviour on expired signature (if the signing certificate or its POE(s) has been expired).- Specified by:
getAlertOnExpiredSignaturein interfaceCertificateVerifier- Returns:
StatusAlertto be processed in case of uncovered POE
-
setAlertOnExpiredSignature
Deprecated.Description copied from interface:CertificateVerifierThis method allows to change the behavior on expired signature during the signature augmentation process (if the signing certificate or its POE(s) has been expired). Default :ExceptionOnStatusAlert- throw an exception.- Specified by:
setAlertOnExpiredSignaturein interfaceCertificateVerifier- Parameters:
alertOnExpiredSignature- defines a behaviour in case of an expired signature
-
getAlertOnExpiredCertificate
Description copied from interface:CertificateVerifierThis method returns the defined behavior on signature creation or augmentation with an expired signing-certificate (notAfter is before the current time). Validated the available POEs in case of existing signature augmentation.- Specified by:
getAlertOnExpiredCertificatein interfaceCertificateVerifier- Returns:
StatusAlertto process in case of a signature with an expired certificate
-
setAlertOnExpiredCertificate
Description copied from interface:CertificateVerifierThis method allows to change a behavior on signature creation or augmentation with an expired signing-certificate (notAfter is before the current time). Validated the available POEs in case of existing signature augmentation. Default :ExceptionOnStatusAlert- throw an exception.- Specified by:
setAlertOnExpiredCertificatein interfaceCertificateVerifier- Parameters:
alertOnExpiredCertificate- defines behavior in case of an expired signing-certificate
-
getAlertOnNotYetValidCertificate
Description copied from interface:CertificateVerifierThis method returns the defined behavior on signature creation with a not yet valid signing-certificate- Specified by:
getAlertOnNotYetValidCertificatein interfaceCertificateVerifier- Returns:
StatusAlertto process in case of a signature with a not yet valid signing-certificate
-
setAlertOnNotYetValidCertificate
Description copied from interface:CertificateVerifierThis method allows to change a behavior on signature creation with a not yet valid signing-certificate (notBefore is after the current time) Default :ExceptionOnStatusAlert- throw an exception.- Specified by:
setAlertOnNotYetValidCertificatein interfaceCertificateVerifier- Parameters:
alertOnNotYetValidCertificate- defines behavior in case of a not yet valid signing-certificate
-
getAugmentationAlertOnHigherSignatureLevel
Description copied from interface:CertificateVerifierThis method returns the defined augmentation behaviour for a signature of a higher level or a document containing a such signature.- Specified by:
getAugmentationAlertOnHigherSignatureLevelin interfaceCertificateVerifier- Returns:
StatusAlertto be processed in case of a signature of a higher level or a document containing a such signature.
-
setAugmentationAlertOnHigherSignatureLevel
public void setAugmentationAlertOnHigherSignatureLevel(StatusAlert augmentationAlertOnHigherSignatureLevel) Description copied from interface:CertificateVerifierThis method allows to change the augmentation behaviour for a signature of a higher level or a document containing a such signature. Default :ExceptionOnStatusAlert- throw an exception.- Specified by:
setAugmentationAlertOnHigherSignatureLevelin interfaceCertificateVerifier- Parameters:
augmentationAlertOnHigherSignatureLevel- defines augmentation behaviour for a signature of a higher level or a document containing a such signature.
-
getAugmentationAlertOnSignatureWithoutCertificates
Description copied from interface:CertificateVerifierThis method returns the defined augmentation behaviour for a signature without certificates.- Specified by:
getAugmentationAlertOnSignatureWithoutCertificatesin interfaceCertificateVerifier- Returns:
StatusAlertto be processed in case of a signature without certificates
-
setAugmentationAlertOnSignatureWithoutCertificates
public void setAugmentationAlertOnSignatureWithoutCertificates(StatusAlert augmentationAlertOnSignatureWithoutCertificates) Description copied from interface:CertificateVerifierThis method allows to change the augmentation behaviour for a signature without certificates. The alert is triggered when no certificate is defined within the signature. Default :ExceptionOnStatusAlert- throw an exception.- Specified by:
setAugmentationAlertOnSignatureWithoutCertificatesin interfaceCertificateVerifier- Parameters:
augmentationAlertOnSignatureWithoutCertificates- defines augmentation behaviour for a signature without certificates.
-
getAugmentationAlertOnSelfSignedCertificateChains
Description copied from interface:CertificateVerifierThis method returns the defined augmentation behaviour for a signature containing only self-signed certificate chains.- Specified by:
getAugmentationAlertOnSelfSignedCertificateChainsin interfaceCertificateVerifier- Returns:
StatusAlertto be processed in case of a signature containing only self-signed certificate chains
-
setAugmentationAlertOnSelfSignedCertificateChains
public void setAugmentationAlertOnSelfSignedCertificateChains(StatusAlert augmentationAlertOnSelfSignedCertificateChains) Description copied from interface:CertificateVerifierThis method allows to change the augmentation behaviour for a signature containing only self-signed certificate chains. The alert is triggered when all used certificates are self-signed. Default :ExceptionOnStatusAlert- throw an exception.- Specified by:
setAugmentationAlertOnSelfSignedCertificateChainsin interfaceCertificateVerifier- Parameters:
augmentationAlertOnSelfSignedCertificateChains- defines augmentation behaviour for a signature containing only self-signed certificate chains.
-
isCheckRevocationForUntrustedChains
public boolean isCheckRevocationForUntrustedChains()Description copied from interface:CertificateVerifierThis method returns true if revocation check is enabled for untrusted certificate chains.- Specified by:
isCheckRevocationForUntrustedChainsin interfaceCertificateVerifier- Returns:
- true if external revocation check is done for untrusted certificate chains
-
setCheckRevocationForUntrustedChains
public void setCheckRevocationForUntrustedChains(boolean checkRevocationForUntrustedChains) Description copied from interface:CertificateVerifierThis method allows enabling of revocation checking for untrusted certificate chains. Default : FALSE (revocation data is not checked for untrusted certificate chains)- Specified by:
setCheckRevocationForUntrustedChainsin interfaceCertificateVerifier- Parameters:
checkRevocationForUntrustedChains- true if revocation checking is allowed for untrusted certificate chains
-
isExtractPOEFromUntrustedChains
Deprecated.Description copied from interface:CertificateVerifierThis method returns whether POEs should be extracted from timestamps coming from untrusted certificate chains.- Specified by:
isExtractPOEFromUntrustedChainsin interfaceCertificateVerifier- Returns:
- true if POEs should be extracted from timestamp with untrusted certificate chains
-
setExtractPOEFromUntrustedChains
Deprecated.Description copied from interface:CertificateVerifierThis method allows enabling of POE extraction from timestamps coming from untrusted certificate chains. Default : FALSE (timestamps created with untrusted certificate chains are not considered as POE)- Specified by:
setExtractPOEFromUntrustedChainsin interfaceCertificateVerifier- Parameters:
extractPOEFromUntrustedChains- true if POE extraction is allowed for timestamps from untrusted certificate chains
-
setDefaultDigestAlgorithm
Deprecated.Description copied from interface:CertificateVerifierThis method allows to change the Digest Algorithm that will be used for tokens' digest calculation Default :DigestAlgorithm.SHA256- Specified by:
setDefaultDigestAlgorithmin interfaceCertificateVerifier- Parameters:
digestAlgorithm-DigestAlgorithmto use
-
getDefaultDigestAlgorithm
Deprecated.Description copied from interface:CertificateVerifierThis method returns a default Digest Algorithm what will be used for digest calculation- Specified by:
getDefaultDigestAlgorithmin interfaceCertificateVerifier- Returns:
DigestAlgorithm
-