GetPublicKeyResult class

Result data returned by getPublicKey.

Constructors

GetPublicKeyResult({String? algorithm, String? id, String? privateKeyOpenssh, String? privateKeyPem, String? publicKeyFingerprintMd5, String? publicKeyFingerprintSha256, String? publicKeyOpenssh, String? publicKeyPem})
Creates a new GetPublicKeyResult. algorithm The name of the algorithm used by the given private key. Possible values are: RSA, ECDSA, ED25519. id Unique identifier for this data source: hexadecimal representation of the SHA1 checksum of the data source. privateKeyOpenssh The private key (in OpenSSH PEM (RFC 4716) format) to extract the public key from. This is mutually exclusive with privateKeyPem. Currently-supported algorithms for keys are: RSA, ECDSA, ED25519. privateKeyPem The private key (in PEM (RFC 1421) format) to extract the public key from. This is mutually exclusive with privateKeyOpenssh. Currently-supported algorithms for keys are: RSA, ECDSA, ED25519. publicKeyFingerprintMd5 The fingerprint of the public key data in OpenSSH MD5 hash format, e.g. aa:bb:cc:.... Only available if the selected private key format is compatible, as per the rules for publicKeyOpenssh and ECDSA P224 limitations. publicKeyFingerprintSha256 The fingerprint of the public key data in OpenSSH SHA256 hash format, e.g. SHA256:.... Only available if the selected private key format is compatible, as per the rules for publicKeyOpenssh and ECDSA P224 limitations. publicKeyOpenssh The public key, in OpenSSH PEM (RFC 4716) format. This is also known as 'Authorized Keys' format. This is not populated for ECDSA with curve P224, as it is not supported. NOTE: the underlying libraries that generate this value append a \n at the end of the PEM. In case this disrupts your use case, we recommend using trimspace(). publicKeyPem The public key, in PEM (RFC 1421) format. NOTE: the underlying libraries that generate this value append a \n at the end of the PEM. In case this disrupts your use case, we recommend using trimspace().
const
GetPublicKeyResult.fromMap(Map<String, dynamic> map)
factory

Properties

algorithm → String?
The name of the algorithm used by the given private key. Possible values are: RSA, ECDSA, ED25519.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String?
Unique identifier for this data source: hexadecimal representation of the SHA1 checksum of the data source.
final
privateKeyOpenssh → String?
The private key (in OpenSSH PEM (RFC 4716) format) to extract the public key from. This is mutually exclusive with privateKeyPem. Currently-supported algorithms for keys are: RSA, ECDSA, ED25519.
final
privateKeyPem → String?
The private key (in PEM (RFC 1421) format) to extract the public key from. This is mutually exclusive with privateKeyOpenssh. Currently-supported algorithms for keys are: RSA, ECDSA, ED25519.
final
publicKeyFingerprintMd5 → String?
The fingerprint of the public key data in OpenSSH MD5 hash format, e.g. aa:bb:cc:.... Only available if the selected private key format is compatible, as per the rules for publicKeyOpenssh and ECDSA P224 limitations.
final
publicKeyFingerprintSha256 → String?
The fingerprint of the public key data in OpenSSH SHA256 hash format, e.g. SHA256:.... Only available if the selected private key format is compatible, as per the rules for publicKeyOpenssh and ECDSA P224 limitations.
final
publicKeyOpenssh → String?
The public key, in OpenSSH PEM (RFC 4716) format. This is also known as 'Authorized Keys' format. This is not populated for ECDSA with curve P224, as it is not supported. NOTE: the underlying libraries that generate this value append a \n at the end of the PEM. In case this disrupts your use case, we recommend using trimspace().
final
publicKeyPem → String?
The public key, in PEM (RFC 1421) format. NOTE: the underlying libraries that generate this value append a \n at the end of the PEM. In case this disrupts your use case, we recommend using trimspace().
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited