Class AMNetCompositePublickeyAuthenticator
Public key authenticator that accepts a key when any inner authenticator accepts it.
Implements
Inherited Members
Namespace: ApacheMinaSSHD.NET.Wrapper.Abstractions
Assembly: ApacheMinaSSHD.NET.Wrapper.dll
Syntax
public sealed class AMNetCompositePublickeyAuthenticator : IAMNetPublickeyAuthenticator
Constructors
| Edit this page View SourceAMNetCompositePublickeyAuthenticator(params IAMNetPublickeyAuthenticator[])
Creates a composite public key authenticator.
Declaration
public AMNetCompositePublickeyAuthenticator(params IAMNetPublickeyAuthenticator[] authenticators)
Parameters
| Type | Name | Description |
|---|---|---|
| IAMNetPublickeyAuthenticator[] | authenticators | The public key authenticators to try in order. |
AMNetCompositePublickeyAuthenticator(IEnumerable<IAMNetPublickeyAuthenticator>)
Creates a composite public key authenticator.
Declaration
public AMNetCompositePublickeyAuthenticator(IEnumerable<IAMNetPublickeyAuthenticator> authenticators)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IAMNetPublickeyAuthenticator> | authenticators | The public key authenticators to try in order. |
Properties
| Edit this page View SourceAuthenticators
Gets the configured public key authenticators in evaluation order.
Declaration
public IReadOnlyList<IAMNetPublickeyAuthenticator> Authenticators { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<IAMNetPublickeyAuthenticator> |
Methods
| Edit this page View SourceAuthenticate(string, string, ISshSession)
Returns whether the supplied public key fingerprint should be accepted for the user.
Declaration
public bool Authenticate(string username, string incomingFingerprint, ISshSession session)
Parameters
| Type | Name | Description |
|---|---|---|
| string | username | The username requested by the client. |
| string | incomingFingerprint | The fingerprint of the public key presented by the client. |
| ISshSession | session | Session metadata for the connection being authenticated. |
Returns
| Type | Description |
|---|---|
| bool |
|