Class NonValidatingCertPathBuilder
java.lang.Object
eu.emi.security.authn.x509.helpers.pkipath.NonValidatingCertPathBuilder
This class is a modified copy of BC's
PKIXCertPathBuilderSpi. The
difference is that this class is building the path only, it is not further
validating it. As without validation it is possible to create many potential
CertPaths a list is returned.Additionally this class report errors as exceptions with
ValidationError inside.- See Also:
-
CertPathBuilderSpiPKIXCertPathBuilderSpi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuild(X509Certificate tbvCert, org.bouncycastle.jcajce.PKIXExtendedBuilderParameters pkixParams, List<X509Certificate> tbvPath, X509Certificate[] origChain) buildPath(org.bouncycastle.jcajce.PKIXExtendedBuilderParameters pkixParams, X509Certificate target, X509Certificate[] origChain) Build a CertPath using the given parameter.
-
Constructor Details
-
NonValidatingCertPathBuilder
public NonValidatingCertPathBuilder()
-
-
Method Details
-
buildPath
public List<CertPath> buildPath(org.bouncycastle.jcajce.PKIXExtendedBuilderParameters pkixParams, X509Certificate target, X509Certificate[] origChain) throws ValidationErrorException Build a CertPath using the given parameter.- Parameters:
pkixParams- PKIXBuilderParameters object containing certificates to build the CertPathtarget- Target certificate for the pathorigChain- original chain- Returns:
- certificate paths
- Throws:
ValidationErrorException- validation error exception
-
build
protected void build(X509Certificate tbvCert, org.bouncycastle.jcajce.PKIXExtendedBuilderParameters pkixParams, List<X509Certificate> tbvPath, X509Certificate[] origChain)
-