diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-07-01 19:23:46 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-07-01 19:23:46 +0700 |
commit | 4e97fa1cbee0072938c5ea33ca51f4e3964f2998 (patch) | |
tree | 0aad9c9bc277429ee733c8383672cb7c6aed329a /crypto/src/asn1/cms/Attributes.cs | |
parent | Refactoring in Asn1.Smime (diff) | |
download | BouncyCastle.NET-ed25519-4e97fa1cbee0072938c5ea33ca51f4e3964f2998.tar.xz |
Refactoring in Asn1.Tsp
Diffstat (limited to 'crypto/src/asn1/cms/Attributes.cs')
-rw-r--r-- | crypto/src/asn1/cms/Attributes.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/crypto/src/asn1/cms/Attributes.cs b/crypto/src/asn1/cms/Attributes.cs index cdcada6dc..00f3b464f 100644 --- a/crypto/src/asn1/cms/Attributes.cs +++ b/crypto/src/asn1/cms/Attributes.cs @@ -14,10 +14,11 @@ namespace Org.BouncyCastle.Asn1.Cms return new Attributes(Asn1Set.GetInstance(obj)); } - public static Attributes GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit) - { - return new Attributes(Asn1Set.GetInstance(taggedObject, declaredExplicit)); - } + public static Attributes GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit) => + new Attributes(Asn1Set.GetInstance(taggedObject, declaredExplicit)); + + public static Attributes GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit) => + new Attributes(Asn1Set.GetTagged(taggedObject, declaredExplicit)); public static Attributes GetOptional(Asn1Encodable element) { |