summary refs log tree commit diff
path: root/crypto/src/asn1/smime/SMIMECapabilitiesAttribute.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/smime/SMIMECapabilitiesAttribute.cs')
-rw-r--r--crypto/src/asn1/smime/SMIMECapabilitiesAttribute.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/crypto/src/asn1/smime/SMIMECapabilitiesAttribute.cs b/crypto/src/asn1/smime/SMIMECapabilitiesAttribute.cs
new file mode 100644
index 000000000..310c478fe
--- /dev/null
+++ b/crypto/src/asn1/smime/SMIMECapabilitiesAttribute.cs
@@ -0,0 +1,16 @@
+using Org.BouncyCastle.Asn1;
+using Org.BouncyCastle.Asn1.X509;
+
+namespace Org.BouncyCastle.Asn1.Smime
+{
+    public class SmimeCapabilitiesAttribute
+        : AttributeX509
+    {
+        public SmimeCapabilitiesAttribute(
+            SmimeCapabilityVector capabilities)
+            : base(SmimeAttributes.SmimeCapabilities,
+                    new DerSet(new DerSequence(capabilities.ToAsn1EncodableVector())))
+        {
+        }
+    }
+}