Package java.security.cert
Class PKIXCertPathBuilderResult
java.lang.Object
java.security.cert.PKIXCertPathValidatorResult
java.security.cert.PKIXCertPathBuilderResult
- All Implemented Interfaces:
Cloneable,CertPathBuilderResult,CertPathValidatorResult
public class PKIXCertPathBuilderResult extends PKIXCertPathValidatorResult implements CertPathBuilderResult
The result of the PKIX certification path builder, returned by
CertPathBuilder.build(CertPathParameters).-
Constructor Summary
Constructors Constructor Description PKIXCertPathBuilderResult(CertPath certPath, TrustAnchor trustAnchor, PolicyNode policyTree, PublicKey subjectPublicKey)Creates a newPKIXCertPathBuilderResultinstance with the specified validated certification path, the trust anchor of the certification path, the policy tree and the public key of the subject. -
Method Summary
Modifier and Type Method Description CertPathgetCertPath()Returns the validated certification path.StringtoString()Returns a string representation of thisPKIXCertPathBuilderResultinstance.Methods inherited from class java.security.cert.PKIXCertPathValidatorResult
clone, getPolicyTree, getPublicKey, getTrustAnchorMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.security.cert.CertPathBuilderResult
clone
-
Constructor Details
-
PKIXCertPathBuilderResult
public PKIXCertPathBuilderResult(CertPath certPath, TrustAnchor trustAnchor, PolicyNode policyTree, PublicKey subjectPublicKey)Creates a newPKIXCertPathBuilderResultinstance with the specified validated certification path, the trust anchor of the certification path, the policy tree and the public key of the subject.- Parameters:
certPath- the validated certification path.trustAnchor- the trust anchor.policyTree- the policy tree (ornullif not used).subjectPublicKey- the public key.- Throws:
NullPointerException- if thecerPath,trustAnchororsubjectPolicyKeyisnull.
-
-
Method Details
-
getCertPath
Returns the validated certification path.- Specified by:
getCertPathin interfaceCertPathBuilderResult- Returns:
- the validated certification path.
-
toString
Returns a string representation of thisPKIXCertPathBuilderResultinstance.- Overrides:
toStringin classPKIXCertPathValidatorResult- Returns:
- a string representation of this
PKIXCertPathBuilderResultinstance.
-