Interface IAMNetPasswordAuthenticator
Authenticates SSH users with a username and password supplied by the client.
Namespace: ApacheMinaSSHD.NET.Wrapper.Abstractions
Assembly: ApacheMinaSSHD.NET.Wrapper.dll
Syntax
public interface IAMNetPasswordAuthenticator
Methods
| Edit this page View SourceAuthenticate(string, string, ISshSession)
Returns whether the supplied username and password should be accepted.
Declaration
bool Authenticate(string username, string password, ISshSession session)
Parameters
| Type | Name | Description |
|---|---|---|
| string | username | The username requested by the client. |
| string | password | The password supplied by the client. |
| ISshSession | session | Session metadata for the connection being authenticated. |
Returns
| Type | Description |
|---|---|
| bool |
|
HandlePasswordChangeRequest(string, string, string, ISshSession)
Handles a client-initiated password change request.
Declaration
bool HandlePasswordChangeRequest(string username, string oldPassword, string newPassword, ISshSession session)
Parameters
| Type | Name | Description |
|---|---|---|
| string | username | The username. |
| string | oldPassword | The current password. |
| string | newPassword | The requested new password. |
| ISshSession | session | Session metadata. |
Returns
| Type | Description |
|---|---|
| bool |
|