The Maverick.NET SSH API

InvalidPassphraseException Class

An exception thrown by SSHPrivateKeyFile implementations to indicate that an invalid passphrase was supplied.

For a list of all members of this type, see InvalidPassphraseException Members.

System.Object
   System.Exception
      Maverick.PublicKey.InvalidPassphraseException

[Visual Basic]
Public Class InvalidPassphraseException
    Inherits Exception
[C#]
public class InvalidPassphraseException : Exception

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

A SSHPrivateKeyFile implementation should attempt to throw this exception when the passphrase supplied by the user is invalid. Some private key formats make this difficult because there are no markers in the decrypted data to check against. This exception is used where ever possible to indicate an invalid passphrase however format exceptions identified by SSHException could also indicate an invalid passphrase.

Requirements

Namespace: Maverick.PublicKey

Assembly: Maverick.NET (in Maverick.NET.dll)

See Also

InvalidPassphraseException Members | Maverick.PublicKey Namespace