init commit

This commit is contained in:
2025-10-09 09:57:24 +09:00
commit 4d551bd74f
6636 changed files with 1218703 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
using System;
using System.Text;
using Org.BouncyCastle.Crypto;
namespace Org.BouncyCastle.Pkix;
public class PkixCertPathBuilderResult : PkixCertPathValidatorResult
{
private PkixCertPath certPath;
public PkixCertPath CertPath => certPath;
public PkixCertPathBuilderResult(PkixCertPath certPath, TrustAnchor trustAnchor, PkixPolicyNode policyTree, AsymmetricKeyParameter subjectPublicKey)
: base(trustAnchor, policyTree, subjectPublicKey)
{
if (certPath == null)
{
throw new ArgumentNullException("certPath");
}
this.certPath = certPath;
}
public override string ToString()
{
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.Append("SimplePKIXCertPathBuilderResult: [\n");
stringBuilder.Append(" Certification Path: ").Append(CertPath).Append('\n');
stringBuilder.Append(" Trust Anchor: ").Append(base.TrustAnchor.TrustedCert.IssuerDN.ToString()).Append('\n');
stringBuilder.Append(" Subject Public Key: ").Append(base.SubjectPublicKey).Append("\n]");
return stringBuilder.ToString();
}
}