summary refs log tree commit diff
path: root/crypto/src/cms/SignerInfoGenerator.cs
diff options
context:
space:
mode:
authormw <megan@cryptoworkshop.com>2020-08-28 23:36:29 +1000
committermw <megan@cryptoworkshop.com>2020-08-28 23:36:29 +1000
commit326817d43b7033ff124924642dec1e84148e898e (patch)
tree66aa5c3215f6976f187bf7236294fe59aeba71fb /crypto/src/cms/SignerInfoGenerator.cs
parentadded IDigestFactory (diff)
downloadBouncyCastle.NET-ed25519-326817d43b7033ff124924642dec1e84148e898e.tar.xz
Updated TimeStampTokenGenerator
Diffstat (limited to 'crypto/src/cms/SignerInfoGenerator.cs')
-rw-r--r--crypto/src/cms/SignerInfoGenerator.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/crypto/src/cms/SignerInfoGenerator.cs b/crypto/src/cms/SignerInfoGenerator.cs
index df8d1d0a1..786749cb5 100644
--- a/crypto/src/cms/SignerInfoGenerator.cs
+++ b/crypto/src/cms/SignerInfoGenerator.cs
@@ -58,6 +58,16 @@ namespace Org.BouncyCastle.Cms
         {
             this.certificate = certificate;
         }
+
+        public SignerInfoGeneratorBuilder NewBuilder()
+        {
+            SignerInfoGeneratorBuilder builder = new SignerInfoGeneratorBuilder();
+            builder.WithSignedAttributeGenerator(signedGen);
+            builder.WithUnsignedAttributeGenerator(unsignedGen);
+            builder.SetDirectSignature(isDirectSignature);
+            return builder;
+        }
+
     }
 
     public class SignerInfoGeneratorBuilder
@@ -69,6 +79,7 @@ namespace Org.BouncyCastle.Cms
         public SignerInfoGeneratorBuilder()
         {
         }
+    
 
         /**
          * If the passed in flag is true, the signer signature will be based on the data, not