public class PKIXAttrCertPathBuilderSpi
extends java.security.cert.CertPathBuilderSpi
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Exception |
certPathException |
| Constructor and Description |
|---|
PKIXAttrCertPathBuilderSpi() |
| Modifier and Type | Method and Description |
|---|---|
private void |
addAdditionalStoresFromAltNames(java.security.cert.X509Certificate cert,
ExtendedPKIXParameters pkixParams) |
private java.security.cert.CertPathBuilderResult |
build(X509AttributeCertificate attrCert,
java.security.cert.X509Certificate tbvCert,
ExtendedPKIXBuilderParameters pkixParams,
java.util.List tbvPath) |
java.security.cert.CertPathBuilderResult |
engineBuild(java.security.cert.CertPathParameters params)
Build and validate a CertPath using the given parameter.
|
private java.util.Collection |
findIssuerCerts(java.security.cert.X509Certificate cert,
java.util.List certStores)
Find the issuer certificates of the given certificate.
|
private java.security.cert.TrustAnchor |
findTrustAnchor(java.security.cert.X509Certificate cert,
java.util.Set trustAnchors)
Search the given
Set of TrustAnchor's for one that is the
issuer of the given X.509 certificate. |
public java.security.cert.CertPathBuilderResult engineBuild(java.security.cert.CertPathParameters params)
throws java.security.cert.CertPathBuilderException,
java.security.InvalidAlgorithmParameterException
engineBuild in class java.security.cert.CertPathBuilderSpiparams - PKIXBuilderParameters object containing all information to
build the CertPathjava.security.cert.CertPathBuilderExceptionjava.security.InvalidAlgorithmParameterExceptionprivate java.security.cert.CertPathBuilderResult build(X509AttributeCertificate attrCert, java.security.cert.X509Certificate tbvCert, ExtendedPKIXBuilderParameters pkixParams, java.util.List tbvPath)
private void addAdditionalStoresFromAltNames(java.security.cert.X509Certificate cert,
ExtendedPKIXParameters pkixParams)
throws java.security.cert.CertificateParsingException
java.security.cert.CertificateParsingExceptionprivate java.security.cert.TrustAnchor findTrustAnchor(java.security.cert.X509Certificate cert,
java.util.Set trustAnchors)
throws AnnotatedException
Set of TrustAnchor's for one that is the
issuer of the given X.509 certificate.cert - The X.509 certificate.trustAnchors - A Set of TrustAnchor'sTrustAnchor object if found or
null if not.AnnotatedException - if a TrustAnchor was found but the
signature verification on the given certificate has thrown
an exception.private java.util.Collection findIssuerCerts(java.security.cert.X509Certificate cert,
java.util.List certStores)
throws AnnotatedException
cert - The certificate for which the issuer certificate should be
found.certStores - A list of X509Store object that will be
searched through.Collection object containing the issuer
X509Certificates. Never null.AnnotatedException - if the signature verification on the given
certificate fails for all found issuer certificates or an
other error occurrs.Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.