Interface ISecurityType
Represents a RFB protocol security type.
Namespace: MarcusW.VncClient.Protocol.SecurityTypes
Assembly: MarcusW.VncClient.dll
Syntax
public interface ISecurityType
Properties
| Improve this Doc View SourceId
Gets the ID for this security type.
Declaration
byte Id { get; }
Property Value
Type | Description |
---|---|
System.Byte |
Name
Gets a human readable name for this security type.
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Priority
Declaration
int Priority { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceAuthenticateAsync(IAuthenticationHandler, CancellationToken)
Executes the security type authentication.
Declaration
Task<AuthenticationResult> AuthenticateAsync(IAuthenticationHandler authenticationHandler, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
IAuthenticationHandler | authenticationHandler | The authentication handler to request login data from the application. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task<AuthenticationResult> | The authentication result. |
ReadServerInitExtensionAsync(CancellationToken)
Reads additional security type specific data contained in the ServerInit message after the main part has been read.
Declaration
Task ReadServerInitExtensionAsync(CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task |