Initializes a new PrivateKeyFile instance.
Namespace: Org.Mentalis.Security.Tools
Assembly: Org.Mentalis.Security.Tools (in Org.Mentalis.Security.Tools)
Version: 1.0.0.0
Syntax
Visual Basic (Declaration) |
---|
Public Sub New ( _ pvkFile As String, _ password As String _ ) |
C# |
---|
public PrivateKeyFile ( string pvkFile, string password ) |
Visual C++ |
---|
public: PrivateKeyFile ( String^ pvkFile, String^ password ) |
Parameters
- pvkFile
- System.String
The file to load.
- password
- System.String
The password, if any.
Exceptions
Exception | Condition |
---|---|
System.ArgumentNullException | pvkFile is a null reference -or- a password is required and password is a null reference. |
System.IO.FileNotFoundException | The specified file could not be found. |
System.Security.Cryptography.CryptographicException | An error occurs while decrypting the file. |
System.IO.InvalidDataException | The file is invalid. |