Class AMNetCompositePasswordAuthenticator
Password authenticator that accepts a login when any inner authenticator accepts it.
Implements
Inherited Members
Namespace: ApacheMinaSSHD.NET.Wrapper.Abstractions
Assembly: ApacheMinaSSHD.NET.Wrapper.dll
Syntax
public sealed class AMNetCompositePasswordAuthenticator : IAMNetPasswordAuthenticator
Constructors
| Edit this page View SourceAMNetCompositePasswordAuthenticator(params IAMNetPasswordAuthenticator[])
Creates a composite password authenticator.
Declaration
public AMNetCompositePasswordAuthenticator(params IAMNetPasswordAuthenticator[] authenticators)
Parameters
| Type | Name | Description |
|---|---|---|
| IAMNetPasswordAuthenticator[] | authenticators | The password authenticators to try in order. |
AMNetCompositePasswordAuthenticator(IEnumerable<IAMNetPasswordAuthenticator>)
Creates a composite password authenticator.
Declaration
public AMNetCompositePasswordAuthenticator(IEnumerable<IAMNetPasswordAuthenticator> authenticators)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IAMNetPasswordAuthenticator> | authenticators | The password authenticators to try in order. |
Properties
| Edit this page View SourceAuthenticators
Gets the configured password authenticators in evaluation order.
Declaration
public IReadOnlyList<IAMNetPasswordAuthenticator> Authenticators { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<IAMNetPasswordAuthenticator> |
Methods
| Edit this page View SourceAuthenticate(string, string, ISshSession)
Returns whether the supplied username and password should be accepted.
Declaration
public 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 |
|