public class NonValidatingCertPathBuilder extends Object
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.CertPathBuilderSpi
,
PKIXCertPathBuilderSpi
Constructor and Description |
---|
NonValidatingCertPathBuilder() |
Modifier and Type | Method and Description |
---|---|
protected void |
build(X509Certificate tbvCert,
PKIXExtendedBuilderParameters pkixParams,
List<X509Certificate> tbvPath,
X509Certificate[] origChain) |
List<CertPath> |
buildPath(PKIXExtendedBuilderParameters pkixParams,
X509Certificate target,
X509Certificate[] origChain)
Build a CertPath using the given parameter.
|
public List<CertPath> buildPath(PKIXExtendedBuilderParameters pkixParams, X509Certificate target, X509Certificate[] origChain) throws ValidationErrorException
pkixParams
- PKIXBuilderParameters object containing certificates
to build the CertPathtarget
- Target certificate for the pathorigChain
- original chainValidationErrorException
- validation error exceptionprotected void build(X509Certificate tbvCert, PKIXExtendedBuilderParameters pkixParams, List<X509Certificate> tbvPath, X509Certificate[] origChain)
Copyright © 2012-2017 European Middleware Initiative. All Rights Reserved.