openssh_key.key_params.factory.create_private_key_params

openssh_key.key_params.factory.create_private_key_params(key_type)

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

Parameters

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

Return type

Type[PrivateKeyParams]

Returns

The subclass of PrivateKeyParams corresponding to the key type name.

Raises

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