Exemplo n.º 1
0
 private EncryptedKeyBuilder(byte[] symmetricKey, KeyEncryptionConfiguration keyEncryptionConfiguration)
 {
     _key = symmetricKey;
     _keyEncryptionConfiguration = keyEncryptionConfiguration;
 }
Exemplo n.º 2
0
 public static EncryptedKeyBuilder ForKey(byte[] symmetricKey, KeyEncryptionConfiguration keyEncryptionConfig)
 {
     return(new EncryptedKeyBuilder(symmetricKey, keyEncryptionConfig));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes an <see cref="EncryptedKeyBuilder"/> instance which can be used to instantiate an AS4EncryptedKey instance.
 /// </summary>
 /// <param name="symmetricKey">The encryption key that should be encrypted.</param>
 /// <param name="keyEncryptionConfiguration">An instance of <see cref="KeyEncryptionConfiguration"/> that contains all information that
 /// is required to encrypt the symmetric key..</param>
 /// <returns></returns>
 internal static EncryptedKeyBuilder CreateEncryptedKeyBuilderForKey(byte[] symmetricKey, KeyEncryptionConfiguration keyEncryptionConfiguration)
 {
     return(EncryptedKeyBuilder.ForKey(symmetricKey, keyEncryptionConfiguration));
 }