FileDocCategorySizeDatePackage
PKIXCertPathBuilderResult.javaAPI DocAndroid 1.5 API3145Wed May 06 22:41:06 BST 2009java.security.cert

PKIXCertPathBuilderResult

public class PKIXCertPathBuilderResult extends PKIXCertPathValidatorResult implements CertPathBuilderResult
The result of the PKIX certification path builder, returned by {@link CertPathBuilder#build(CertPathParameters)}.
since
Android 1.0

Fields Summary
private final CertPath
certPath
Constructors Summary
public PKIXCertPathBuilderResult(CertPath certPath, TrustAnchor trustAnchor, PolicyNode policyTree, PublicKey subjectPublicKey)
Creates a new {@code PKIXCertPathBuilderResult} instance with the specified validated certification path, the trust anchor of the certification path, the policy tree and the public key of the subject.

param
certPath the validated certification path.
param
trustAnchor the trust anchor.
param
policyTree the policy tree (or {@code null} if not used).
param
subjectPublicKey the public key.
throws
NullPointerException if the {@code cerPath}, {@code trustAnchor} or {@code subjectPolicyKey} is {@code null}.
since
Android 1.0

        super(trustAnchor, policyTree, subjectPublicKey);
        this.certPath = certPath;
        if (this.certPath == null) {
            throw new NullPointerException(Messages.getString("security.55")); //$NON-NLS-1$
        }
    
Methods Summary
public java.security.cert.CertPathgetCertPath()
Returns the validated certification path.

return
the validated certification path.
since
Android 1.0

        return certPath;
    
public java.lang.StringtoString()
Returns a string representation of this {@code PKIXCertPathBuilderResult} instance.

return
a string representation of this {@code PKIXCertPathBuilderResult} instance.
since
Android 1.0

        StringBuffer sb = new StringBuffer(super.toString());
        sb.append("\n Certification Path: "); //$NON-NLS-1$
        sb.append(certPath.toString());
        sb.append("\n]"); //$NON-NLS-1$
        return sb.toString();