diff options
author | mw <megan@cryptoworkshop.com> | 2020-08-28 23:36:29 +1000 |
---|---|---|
committer | mw <megan@cryptoworkshop.com> | 2020-08-28 23:36:29 +1000 |
commit | 326817d43b7033ff124924642dec1e84148e898e (patch) | |
tree | 66aa5c3215f6976f187bf7236294fe59aeba71fb /crypto/src/cms | |
parent | added IDigestFactory (diff) | |
download | BouncyCastle.NET-ed25519-326817d43b7033ff124924642dec1e84148e898e.tar.xz |
Updated TimeStampTokenGenerator
Diffstat (limited to 'crypto/src/cms')
-rw-r--r-- | crypto/src/cms/SignerInfoGenerator.cs | 11 |
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 |