Package xades4j.providers.impl
Class PKIXCertificateValidationProvider.Builder
java.lang.Object
xades4j.providers.impl.PKIXCertificateValidationProvider.Builder
- Enclosing class:
- PKIXCertificateValidationProvider
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
certPathBuilderProvider
(String certPathBuilderProvider) Sets theCertPathBuilder
provider.checkRevocation
(boolean revocationEnabled) Sets whether revocation checking should be used.intermediateCertStores
(CertStore... certStores) Sets theCertStore
s that contain intermediate certificates to be used in the construction of the certification path.maxPathLength
(int maxPathLength) Sets the maximum length of the certification path.signatureProvider
(String signatureProvider) Sets the provider forSignature
objects used when building the certification path.
-
Method Details
-
build
public PKIXCertificateValidationProvider build() throws NoSuchAlgorithmException, NoSuchProviderException -
intermediateCertStores
Sets theCertStore
s that contain intermediate certificates to be used in the construction of the certification path. May contain CRLs to be used if revocation checking is enabled.- Parameters:
certStores
- the certificate and CRL stores- Returns:
- the current instance
-
checkRevocation
Sets whether revocation checking should be used. Defaults totrue
.- Parameters:
revocationEnabled
-true
to check revocation,false
otherwise- Returns:
- the current instance
-
maxPathLength
Sets the maximum length of the certification path.- Parameters:
maxPathLength
- the maximum length- Returns:
- the current instance
-
certPathBuilderProvider
public PKIXCertificateValidationProvider.Builder certPathBuilderProvider(String certPathBuilderProvider) Sets theCertPathBuilder
provider.- Parameters:
certPathBuilderProvider
- the provider- Returns:
- the current instance
-
signatureProvider
Sets the provider forSignature
objects used when building the certification path.- Parameters:
signatureProvider
- the provider- Returns:
- the current instance
-