diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-01-28 18:57:30 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-01-28 18:57:30 +0700 |
commit | 558aef70537b3882e5616e9d0e7b40d971e2dd42 (patch) | |
tree | 1ac43c975f414e69a268dca315a10a87fa406ea8 /crypto/src/pkix/PkixCertPathValidatorResult.cs | |
parent | Add Xoodyak to the master branch (diff) | |
download | BouncyCastle.NET-ed25519-558aef70537b3882e5616e9d0e7b40d971e2dd42.tar.xz |
Misc. cleanup after bc-fips-csharp updates
Diffstat (limited to 'crypto/src/pkix/PkixCertPathValidatorResult.cs')
-rw-r--r-- | crypto/src/pkix/PkixCertPathValidatorResult.cs | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/crypto/src/pkix/PkixCertPathValidatorResult.cs b/crypto/src/pkix/PkixCertPathValidatorResult.cs index 07cb350c1..b89ec9d53 100644 --- a/crypto/src/pkix/PkixCertPathValidatorResult.cs +++ b/crypto/src/pkix/PkixCertPathValidatorResult.cs @@ -2,13 +2,9 @@ using System; using System.Text; using Org.BouncyCastle.Crypto; -using Org.BouncyCastle.Security; namespace Org.BouncyCastle.Pkix { - /// <summary> - /// Summary description for PkixCertPathValidatorResult. - /// </summary> public class PkixCertPathValidatorResult //: ICertPathValidatorResult { @@ -34,15 +30,10 @@ namespace Org.BouncyCastle.Pkix public PkixCertPathValidatorResult(TrustAnchor trustAnchor, PkixPolicyNode policyTree, AsymmetricKeyParameter subjectPublicKey) { - if (trustAnchor == null) - throw new ArgumentNullException(nameof(trustAnchor)); - if (subjectPublicKey == null) - throw new ArgumentNullException(nameof(subjectPublicKey)); - - this.trustAnchor = trustAnchor; - this.policyTree = policyTree; - this.subjectPublicKey = subjectPublicKey; - } + this.trustAnchor = trustAnchor ?? throw new ArgumentNullException(nameof(trustAnchor)); + this.policyTree = policyTree; + this.subjectPublicKey = subjectPublicKey ?? throw new ArgumentNullException(nameof(subjectPublicKey)); + } public object Clone() { |