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
- Returns
The subclass of
PrivateKeyParamscorresponding to the key type name.- Raises
KeyError – There is no subclass of
PrivateKeyParamscorresponding to the given key type name.