Initializes a new instance of the PEMKeyMasterConfiguration class that uses the private
key in the supplied PEM format file and the specified hashing algorithm.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public PEMKeyMasterConfiguration( string pemKeyFile, KeyMasterHashingAlgorithm hashingAlgorithm )
Public Sub New ( _ pemKeyFile As String, _ hashingAlgorithm As KeyMasterHashingAlgorithm _ )
public: PEMKeyMasterConfiguration( String^ pemKeyFile, KeyMasterHashingAlgorithm hashingAlgorithm )
Parameters
- pemKeyFile (String)
- The file pathname of the PEM private key file.
- hashingAlgorithm (KeyMasterHashingAlgorithm)
- The hashing algorithm that will be used to generate KeyMaster tokens.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The specified key file is an inappropriate format. |
FileNotFoundException | The specified key file cannot be found. |