Module sshkey_tools.exceptions
Exceptions thrown by sshkey_tools
Classes
class DeprecatedClassCalled (*args, **kwargs)-
Expand source code
class DeprecatedClassCalled(ValueError): """ Raised when trying to instantiate a deprecated class """Raised when trying to instantiate a deprecated class
Ancestors
- builtins.ValueError
- builtins.Exception
- builtins.BaseException
class InsecureNonceException (*args, **kwargs)-
Expand source code
class InsecureNonceException(ValueError): """ Raised when the nonce is too short to be secure. Especially important for ECDSA, see: https://billatnapier.medium.com/ecdsa-weakness-where-nonces-are-reused-2be63856a01a """Raised when the nonce is too short to be secure. Especially important for ECDSA, see: https://billatnapier.medium.com/ecdsa-weakness-where-nonces-are-reused-2be63856a01a
Ancestors
- builtins.ValueError
- builtins.Exception
- builtins.BaseException
class IntegerOverflowException (*args, **kwargs)-
Expand source code
class IntegerOverflowException(ValueError): """ Raised when the integer is too large to be represented """Raised when the integer is too large to be represented
Ancestors
- builtins.ValueError
- builtins.Exception
- builtins.BaseException
class InvalidCertificateFieldException (*args, **kwargs)-
Expand source code
class InvalidCertificateFieldException(KeyError): """ Raised when the certificate field is not found/not editable """Raised when the certificate field is not found/not editable
Ancestors
- builtins.KeyError
- builtins.LookupError
- builtins.Exception
- builtins.BaseException
class InvalidCertificateFormatException (*args, **kwargs)-
Expand source code
class InvalidCertificateFormatException(ValueError): """ Raised when the format of the certificate is invalid """Raised when the format of the certificate is invalid
Ancestors
- builtins.ValueError
- builtins.Exception
- builtins.BaseException
class InvalidClassCallException (*args, **kwargs)-
Expand source code
class InvalidClassCallException(ValueError): """ Raised when trying to instantiate a parent class """Raised when trying to instantiate a parent class
Ancestors
- builtins.ValueError
- builtins.Exception
- builtins.BaseException
class InvalidCurveException (*args, **kwargs)-
Expand source code
class InvalidCurveException(ValueError): """ Raised when the ECDSA curve is not supported. """Raised when the ECDSA curve is not supported.
Ancestors
- builtins.ValueError
- builtins.Exception
- builtins.BaseException
class InvalidDataException (*args, **kwargs)-
Expand source code
class InvalidDataException(ValueError): """ Raised when the data passed to a function is invalid """Raised when the data passed to a function is invalid
Ancestors
- builtins.ValueError
- builtins.Exception
- builtins.BaseException
class InvalidFieldDataException (*args, **kwargs)-
Expand source code
class InvalidFieldDataException(ValueError): """ Raised when a field contains invalid data """Raised when a field contains invalid data
Ancestors
- builtins.ValueError
- builtins.Exception
- builtins.BaseException
class InvalidHashAlgorithmException (*args, **kwargs)-
Expand source code
class InvalidHashAlgorithmException(ValueError): """ Raised when the hash algorithm specified is not supported """Raised when the hash algorithm specified is not supported
Ancestors
- builtins.ValueError
- builtins.Exception
- builtins.BaseException
class InvalidHashException (*args, **kwargs)-
Expand source code
class InvalidHashException(ValueError): """ Raised when the hash type is not available """Raised when the hash type is not available
Ancestors
- builtins.ValueError
- builtins.Exception
- builtins.BaseException
class InvalidKeyException (*args, **kwargs)-
Expand source code
class InvalidKeyException(ValueError): """ Raised when a key is invalid. """Raised when a key is invalid.
Ancestors
- builtins.ValueError
- builtins.Exception
- builtins.BaseException
class InvalidKeyFormatException (*args, **kwargs)-
Expand source code
class InvalidKeyFormatException(ValueError): """ Raised when the format of the chosen key is invalid, normally when trying to use a private key instead of a public key or vice versa """Raised when the format of the chosen key is invalid, normally when trying to use a private key instead of a public key or vice versa
Ancestors
- builtins.ValueError
- builtins.Exception
- builtins.BaseException
class InvalidSignatureException (*args, **kwargs)-
Expand source code
class InvalidSignatureException(ValueError): """ Raised when the signature checked is invalid """Raised when the signature checked is invalid
Ancestors
- builtins.ValueError
- builtins.Exception
- builtins.BaseException
class NoPrivateKeyException (*args, **kwargs)-
Expand source code
class NoPrivateKeyException(ValueError): """ Raised when no private key is present to sign with """Raised when no private key is present to sign with
Ancestors
- builtins.ValueError
- builtins.Exception
- builtins.BaseException
class NotSignedException (*args, **kwargs)-
Expand source code
class NotSignedException(ValueError): """ Raised when trying to export a certificate that has not been signed by a private key """Raised when trying to export a certificate that has not been signed by a private key
Ancestors
- builtins.ValueError
- builtins.Exception
- builtins.BaseException
class SSHCertificateException (*args, **kwargs)-
Expand source code
class SSHCertificateException(ValueError): """ Raised when the SSH Certificate is invalid """Raised when the SSH Certificate is invalid
Ancestors
- builtins.ValueError
- builtins.Exception
- builtins.BaseException
class SignatureNotPossibleException (*args, **kwargs)-
Expand source code
class SignatureNotPossibleException(ValueError): """ Raised when the signature of a certificate is not possible, usually because no private key has been loaded or a required field is empty. """Raised when the signature of a certificate is not possible, usually because no private key has been loaded or a required field is empty.
Ancestors
- builtins.ValueError
- builtins.Exception
- builtins.BaseException