diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-07-01 20:31:14 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-07-01 20:31:14 +0700 |
commit | 192a98faa4536772b03a5cd59b6e4ab4a2ec2461 (patch) | |
tree | 9a254e2c0d7ca92b7e8108c554c2c8dbc547f79d /crypto/src/asn1/esf/OtherSigningCertificate.cs | |
parent | Refactoring in Asn1.X500 (diff) | |
download | BouncyCastle.NET-ed25519-192a98faa4536772b03a5cd59b6e4ab4a2ec2461.tar.xz |
Asn1Sequence subclass static methods
Diffstat (limited to 'crypto/src/asn1/esf/OtherSigningCertificate.cs')
-rw-r--r-- | crypto/src/asn1/esf/OtherSigningCertificate.cs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/crypto/src/asn1/esf/OtherSigningCertificate.cs b/crypto/src/asn1/esf/OtherSigningCertificate.cs index 78fda76d1..f9333eb6c 100644 --- a/crypto/src/asn1/esf/OtherSigningCertificate.cs +++ b/crypto/src/asn1/esf/OtherSigningCertificate.cs @@ -54,15 +54,8 @@ namespace Org.BouncyCastle.Asn1.Esf public OtherSigningCertificate(OtherCertID[] certs, params PolicyInformation[] policies) { - if (certs == null) - throw new ArgumentNullException(nameof(certs)); - m_certs = DerSequence.FromElements(certs); - - if (policies != null) - { - m_policies = DerSequence.FromElements(policies); - } + m_policies = DerSequence.FromElementsOptional(policies); } public OtherSigningCertificate(IEnumerable<OtherCertID> certs) |