예제 #1
0
 /// <summary>
 /// Creates a new instance of an <see cref="EncryptedXmlDecryptor"/>.
 /// </summary>
 /// <param name="services">An optional <see cref="IServiceProvider"/> to provide ancillary services.</param>
 public EncryptedXmlDecryptor(IServiceProvider services)
 {
     _decryptor = services?.GetService <IInternalEncryptedXmlDecryptor>() ?? this;
     _options   = services?.GetService <IOptions <XmlKeyDecryptionOptions> >()?.Value;
 }
 public EncryptedXmlWithCertificateKeys(XmlKeyDecryptionOptions options, XmlDocument document)
     : base(document)
 {
     _options = options;
 }