GetPublicKeyResult constructor
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().
Implementation
const GetPublicKeyResult({
this.algorithm,
this.id,
this.privateKeyOpenssh,
this.privateKeyPem,
this.publicKeyFingerprintMd5,
this.publicKeyFingerprintSha256,
this.publicKeyOpenssh,
this.publicKeyPem,
});