Table of Contents

Method LoadAsync

Namespace
SshSharp
Assembly
SshSharp.dll

LoadAsync(string, CancellationToken)

Reads a revoked keys file, as Parse(ReadOnlySpan<byte>) does.

public static Task<SshKeyRevocationList> LoadAsync(string path, CancellationToken cancellationToken = default)

Parameters

path string

The file.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<SshKeyRevocationList>

Exceptions

FormatException

The file is a malformed KRL, uses a KRL feature this library does not know, or is a key list with a certificate line of an accepted type whose certified key cannot be read.

IOException

The file cannot be read, or is larger than 16 MiB.