-
-
Notifications
You must be signed in to change notification settings - Fork 4
SSH.Session.GetAuthenticationMethods
Function GetAuthenticationMethods(Username As String) As String()
Name | Type | Comment |
---|---|---|
Username |
String | The username to get authentication methods for. |
Returns an array of accepted authentication methods.
Query the remote server for a list of authentication methods that the Username
is eligible to use. Note that most server implementations do not permit different usernames between requests. Therefore this must be the same username you will use on later SendCredentials() calls.
In the unlikely event that the server allows the user to log on without authenticating, calling this method will successfully log the user on and the returned list will be empty. Consequently an empty return value is not necessarily an error. You can check the IsAuthenticated property to determine whether you're actually authenticated.
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2018-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.