WriteSecretFile() static private method

static private WriteSecretFile ( string filePath, string content, System.Security.Cryptography.DataProtector protector ) : System.Threading.Tasks.Task
filePath string
content string
protector System.Security.Cryptography.DataProtector
return System.Threading.Tasks.Task
Example #1
0
        private Task UnauditedWriteSecret(Secret secret)
        {
            // Generate the name of the file
            string secretFile = GetFileName(secret.Name);

            // Write the file
            var protector = CreateProtector(secret.Name);

            return(DpapiSecretStoreProvider.WriteSecretFile(secretFile, JsonFormat.Serialize(secret), protector));
        }