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 byCertPathBuilder.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
All Methods Instance Methods Concrete Methods 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, getTrustAnchor
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.security.cert.CertPathBuilderResult
clone
-
-
-
-
Constructor Detail
-
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 Detail
-
getCertPath
public CertPath getCertPath()
Returns the validated certification path.- Specified by:
getCertPathin interfaceCertPathBuilderResult- Returns:
- the validated certification path.
-
toString
public String toString()
Returns a string representation of thisPKIXCertPathBuilderResultinstance.- Overrides:
toStringin classPKIXCertPathValidatorResult- Returns:
- a string representation of this
PKIXCertPathBuilderResultinstance.
-
-