PvtKeyEncoding enum Null safety

Supported private key encodings.

This enumeration is used to indicate the format that was decoded, or to

openSsh

OpenSSH private key format.

This is a proprietary encoding used by newer versions of the OpenSSH implementation.

This encoding starts with "---- BEGIN OPENSSH PRIVATE KEY ----".

pkcs1

Textual encoding of PKCS #1.

This encoding is often referred to as "PEM". But that term is ambiguous, since PEM encoding is used to encode other types of binary data besides public keys. Implementations of PEM encoding also vary.

This encoding is used by older versions of OpenSSH.

This implementation uses the textual encoding of RFC 7468, which specifies a unified and interoperable version of PEM and PEM-like text_encodings.

Strictly speaking, this encoding is not PKCS #1, but the RFC 7468 textual encoding of binary data conforming to PKCS #1.

This encoding starts with "-----BEGIN PRIVATE KEY-----".

Constants

openSsh → const PvtKeyEncoding

OpenSSH Private Key

const PvtKeyEncoding(0)
puttyPrivateKey → const PvtKeyEncoding

PuTTY Private Key

const PvtKeyEncoding(1)
values → const List<PvtKeyEncoding>

A constant List of the values in this enum, in order of their declaration.

const List<PvtKeyEncoding>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited