java.security.cert
Class PKIXCertPathBuilderResult

java.lang.Object
  extended by java.security.cert.PKIXCertPathValidatorResult
      extended by java.security.cert.PKIXCertPathBuilderResult
All Implemented Interfaces:
Cloneable, CertPathBuilderResult, CertPathValidatorResult

public class PKIXCertPathBuilderResult
extends PKIXCertPathValidatorResult
implements CertPathBuilderResult

The result of calling the CertPathBuilder.build(java.security.cert.CertPathParameters) method of PKIX CertPathBuilders.

See Also:
CertPathBuilder, CertPathBuilderResult

Constructor Summary
PKIXCertPathBuilderResult(CertPath certPath, TrustAnchor trustAnchor, PolicyNode policyTree, PublicKey subjectPublicKey)
          Creates a new PKIXCertPathBuilderResult.
 
Method Summary
 CertPath getCertPath()
          Returns the certificate path that was built.
 String toString()
          Returns a printable string representation of this result.
 
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 new PKIXCertPathBuilderResult.

Parameters:
certPath - The certificate path.
trustAnchor - The trust anchor.
policyTree - The root node of the policy tree.
subjectPublicKey - The public key.
Throws:
NullPointerException - If certPath, trustAnchor or subjectPublicKey is null.
Method Detail

getCertPath

public CertPath getCertPath()
Returns the certificate path that was built.

Specified by:
getCertPath in interface CertPathBuilderResult
Returns:
The certificate path that was built.

toString

public String toString()
Description copied from class: PKIXCertPathValidatorResult
Returns a printable string representation of this result.

Overrides:
toString in class PKIXCertPathValidatorResult
Returns:
A printable string representation of this result.
See Also:
Object.getClass(), Object.hashCode(), Class.getName(), Integer.toHexString(int)