Class AMNetPasswordAuthenticator
Secure default password authenticator implementation.
Implements
Inherited Members
Namespace: ApacheMinaSSHD.NET.Wrapper.Abstractions
Assembly: ApacheMinaSSHD.NET.Wrapper.dll
Syntax
public class AMNetPasswordAuthenticator : IAMNetPasswordAuthenticator
Remarks
This implementation denies all passwords. Override Authenticate(string, string, ISshSession), use AMNetDelegatePasswordAuthenticator, or provide your own IAMNetPasswordAuthenticator to enforce application password policy.
Constructors
| Edit this page View SourceAMNetPasswordAuthenticator()
Creates a default password authenticator.
Declaration
public AMNetPasswordAuthenticator()
Methods
| Edit this page View SourceAuthenticate(string, string, ISshSession)
Returns whether the supplied username and password should be accepted.
Declaration
public virtual 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 |
|