PowerTCP SSH and SFTP for .NET
IsAuthMethodAvailable Method




The username used for authentication
An authentication method (e.g., 'publickey', 'password', 'keyboard-interactive') as specified by the SSH-2 standard
Checks if the specified authentication method is available.
Syntax
'Declaration
 
Public Function IsAuthMethodAvailable( _
   ByVal username As String, _
   ByVal method As String _
) As Boolean
'Usage
 
Dim instance As Connection
Dim username As String
Dim method As String
Dim value As Boolean
 
value = instance.IsAuthMethodAvailable(username, method)
public bool IsAuthMethodAvailable( 
   string username,
   string method
)
public: bool IsAuthMethodAvailable( 
   string* username,
   string* method
) 
public:
bool IsAuthMethodAvailable( 
   String^ username,
   String^ method
) 

Parameters

username
The username used for authentication
method
An authentication method (e.g., 'publickey', 'password', 'keyboard-interactive') as specified by the SSH-2 standard

Return Value

True if the specified authentication method is currently available.
See Also

Reference

Connection Class
Connection Members
GetRemainingAuthMethods(String) Method


PowerTCP SSH and SFTP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic