This exception indicates that a private key has not been found in a supplied file/stream parameter or KeyStore or a private key is not suitable for decryption or signing.

Namespace: DidiSoft.Pgp.Exceptions
Assembly: DidiSoft.Pgp (in DidiSoft.Pgp.dll) Version: 1.7.3.35547

Syntax

C#
public class WrongPrivateKeyException : PGPException
Visual Basic
Public Class WrongPrivateKeyException _
	Inherits PGPException
Visual C++
public ref class WrongPrivateKeyException : public PGPException

Remarks

Introduced in version 1.7

Inheritance Hierarchy

System..::..Object
  System..::..Exception
    PgpException
      DidiSoft.Pgp..::..PGPException
        DidiSoft.Pgp.Exceptions..::..WrongPrivateKeyException

See Also