PowerTCP SSH and SFTP for .NET
GetRemainingAuthMethods(String) Method




The username to use for authentication
Checks which authentication methods are supported by the server at the current stage of the authentication process.
Syntax
'Declaration
 
Public Function GetRemainingAuthMethods( _
   ByVal username As String _
) As String()
'Usage
 
Dim instance As Connection
Dim username As String
Dim value() As String
 
value = instance.GetRemainingAuthMethods(username)
public string[] GetRemainingAuthMethods( 
   string username
)
public: string*[]* GetRemainingAuthMethods( 
   string* username
) 
public:
array<String^>^ GetRemainingAuthMethods( 
   String^ username
) 

Parameters

username
The username to use for authentication

Return Value

An array holding authentication method names
Remarks

If authentication was not attempted prior to calling this method, this method will perform 'none' authentication with the specified username to query the available authentication methods, and will raise the StateChanged event before this methods returns. If authentication was previously attempted, the username argument is not used, and this method will return the cached value from the prior authentication attempt; the StateChanged event will not be raised.

If your server accepts 'none' authentication as the sole authentication factor, this method will authenticate the user.

The server may return method names that are not supported by this implementation.

This method should not be called after a successful authentication.

See Also

Reference

Connection Class
Connection Members


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