public DigitalSignatureInMemoryProvider(DigitalSignatureProviderOptions options) : base(options) { if (Options.AssignNewKey) { AssignNewKey(); } }
public DigitalSignatureCspProvider(DigitalSignatureProviderOptions options) : base(options) { if (options.CspParameters == null) { throw new ArgumentException($"{nameof(options.CspParameters)} cannot be null or empty"); } if (string.IsNullOrEmpty(options.CspParameters.KeyContainerName)) { throw new ArgumentException($"{nameof(options.CspParameters.KeyContainerName)} cannot be null or empty"); } if (Options.AssignNewKey) { AssignNewKey(); } }
public DigitalSignatureXmlProvider(DigitalSignatureProviderOptions options) : base(options) { if (string.IsNullOrEmpty(Options.XmlPublicKeyFilePath)) { throw new ArgumentException($"{nameof(Options.XmlPublicKeyFilePath)} cannot be null or empty"); } if (string.IsNullOrEmpty(Options.XmlPrivateKeyFilePath)) { throw new ArgumentException($"{nameof(Options.XmlPrivateKeyFilePath)} cannot be null or empty"); } if (Options.AssignNewKey) { AssignNewKey(); } }
protected DigitalSignatureProviderBase(DigitalSignatureProviderOptions options) { Options = options; }
public static DigitalSignatureProviderBuilder WithOptions(this DigitalSignatureProviderBuilder builder, DigitalSignatureProviderOptions options) { builder.Options = options; return(builder); }