private EncryptedKeyBuilder(byte[] symmetricKey, KeyEncryptionConfiguration keyEncryptionConfiguration) { _key = symmetricKey; _keyEncryptionConfiguration = keyEncryptionConfiguration; }
public static EncryptedKeyBuilder ForKey(byte[] symmetricKey, KeyEncryptionConfiguration keyEncryptionConfig) { return(new EncryptedKeyBuilder(symmetricKey, keyEncryptionConfig)); }
/// <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)); }