PKIXCertPathBuilderResultpublic class PKIXCertPathBuilderResult extends PKIXCertPathValidatorResult implements CertPathBuilderResultThe result of the PKIX certification path builder, returned by
{@link CertPathBuilder#build(CertPathParameters)}. |
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.
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.CertPath | getCertPath()Returns the validated certification path.
return certPath;
| public java.lang.String | toString()Returns a string representation of this {@code PKIXCertPathBuilderResult}
instance.
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();
|
|