openssh_key.key_params.factory.create_public_key_params

openssh_key.key_params.factory.create_public_key_params(key_type)

Returns the class corresponding to public key parameters objects of the given key type name.

Parameters

key_type (str) – The name of the OpenSSH key type.

Return type

Type[PublicKeyParams]

Returns

The subclass of PublicKeyParams corresponding to the key type name.

Raises

KeyError – There is no subclass of PublicKeyParams corresponding to the given key type name.