Table of Contents

Method Parse

Namespace
SshSharp
Assembly
SshSharp.dll

Parse(ReadOnlySpan<byte>)

Reads a KRL, or, when data does not start with the KRL header (SSHKRL), a text file of public keys in UTF-8, as OpenSSH tells them apart.

public static SshKeyRevocationList Parse(ReadOnlySpan<byte> data)

Parameters

data ReadOnlySpan<byte>

The file's contents.

Returns

SshKeyRevocationList

Exceptions

FormatException

The data is a malformed KRL, or uses a section or critical extension this library does not know (a KRL is refused rather than read in part, since a part could leave a revoked key out), or is a key list with a certificate line of an accepted type whose certified key cannot be read (refused for the same reason).