Saves the private key into the supplied stream in the specified format.

Namespace:  Rebex.Security.Cryptography.Pkcs
Assembly:  Rebex.Common (in Rebex.Common.dll)

Syntax

Visual Basic
Public Sub Save ( _
	output As Stream, _
	password As String, _
	format As PrivateKeyFormat _
)
C#
public void Save(
	Stream output,
	string password,
	PrivateKeyFormat format
)

Parameters

output
Type: System.IO..::..Stream
A stream to which to save the private key.
password
Type: System..::..String
Password to encrypted the private key, or null if no encryption desired.
format
Type: Rebex.Security.Cryptography.Pkcs..::..PrivateKeyFormat
Private key file format.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also