methodTstSSHPublicKeyList.SetPublicKey
procedure SetPublicKey(const aIdentifier: OctetString; const aKey : iUnknown);
Adds or replaces the public key associated with aIdentifier (typically an SSH user name, UTF-8 encoded) in the list, marking it Modified. Use this at run time to register an authorized peer key programmatically (for a server, a client's login key; for a client, a known host key) instead of loading it from the on-disk PublicKeyFileName. aKey must implement iIFPublicKey (RSA), or iDLPublicKey for DSS, ECDSA (ecdsa-sha2-nistp*) or EdDSA (ssh-ed25519 / ssh-ed448); anything else raises. Passing an empty aIdentifier raises, since a default (empty-name) key is not allowed here. A key added here is written to PublicKeyFileName by SaveKeys, whatever its family.