/// <summary> /// Creates an instance of {@code PKIXCertPathBuilderResult} /// containing the specified parameters. /// </summary> /// <param name="certPath"> the validated {@code CertPath} </param> /// <param name="trustAnchor"> a {@code TrustAnchor} describing the CA that /// served as a trust anchor for the certification path </param> /// <param name="policyTree"> the immutable valid policy tree, or {@code null} /// if there are no valid policies </param> /// <param name="subjectPublicKey"> the public key of the subject </param> /// <exception cref="NullPointerException"> if the {@code certPath}, /// {@code trustAnchor} or {@code subjectPublicKey} parameters /// are {@code null} </exception> public PKIXCertPathBuilderResult(CertPath certPath, TrustAnchor trustAnchor, PolicyNode policyTree, PublicKey subjectPublicKey) : base(trustAnchor, policyTree, subjectPublicKey) { if (certPath == null) { throw new NullPointerException("certPath must be non-null"); } this.CertPath_Renamed = certPath; }
/// <summary> /// Return a printable representation of this /// {@code PKIXCertPathBuilderResult}. /// </summary> /// <returns> a {@code String} describing the contents of this /// {@code PKIXCertPathBuilderResult} </returns> public override String ToString() { StringBuffer sb = new StringBuffer(); sb.Append("PKIXCertPathBuilderResult: [\n"); sb.Append(" Certification Path: " + CertPath_Renamed + "\n"); sb.Append(" Trust Anchor: " + TrustAnchor.ToString() + "\n"); sb.Append(" Policy Tree: " + Convert.ToString(PolicyTree) + "\n"); sb.Append(" Subject Public Key: " + PublicKey + "\n"); sb.Append("]"); return(sb.ToString()); }
/// <summary> /// Creates an instance of {@code PKIXCertPathValidatorResult} /// containing the specified parameters. /// </summary> /// <param name="trustAnchor"> a {@code TrustAnchor} describing the CA that /// served as a trust anchor for the certification path </param> /// <param name="policyTree"> the immutable valid policy tree, or {@code null} /// if there are no valid policies </param> /// <param name="subjectPublicKey"> the public key of the subject </param> /// <exception cref="NullPointerException"> if the {@code subjectPublicKey} or /// {@code trustAnchor} parameters are {@code null} </exception> public PKIXCertPathValidatorResult(TrustAnchor trustAnchor, PolicyNode policyTree, PublicKey subjectPublicKey) { if (subjectPublicKey == null) { throw new NullPointerException("subjectPublicKey must be non-null"); } if (trustAnchor == null) { throw new NullPointerException("trustAnchor must be non-null"); } this.TrustAnchor_Renamed = trustAnchor; this.PolicyTree_Renamed = policyTree; this.SubjectPublicKey = subjectPublicKey; }