cryptnoxpro.command.user_keys package
Subpackages
Submodules
cryptnoxpro.command.user_keys.authentication module
cryptnoxpro.command.user_keys.user_key_base module
Module containing base class for user key.
- exception cryptnoxpro.command.user_keys.user_key_base.UserKeyException[source]
Bases:
ExceptionBase exception for all exceptions for UserKey
- exception cryptnoxpro.command.user_keys.user_key_base.ExitException[source]
Bases:
UserKeyExceptionThe user has exited the request
- exception cryptnoxpro.command.user_keys.user_key_base.NotFoundException[source]
Bases:
UserKeyExceptionThe user key hasn’t been found
- exception cryptnoxpro.command.user_keys.user_key_base.NotSupportedException[source]
Bases:
UserKeyExceptionThe user key is not supported
- exception cryptnoxpro.command.user_keys.user_key_base.ProcessingException[source]
Bases:
UserKeyExceptionThere was an issue in processing the user key
- class cryptnoxpro.command.user_keys.user_key_base.UserKey(target: str = '')[source]
Bases:
objectBase class on top of which other user key classes should be implemented
- priority: int = 0
- abstract property description: str
Description of the user key service :rtype: str
- Type:
return
- abstract property name: str
Name of the user key service :rtype: str
- Type:
return
- abstract property public_key: bytes
Public key of the user key service :rtype: bytes
- Type:
return
- abstractmethod sign(message: bytes) bytes[source]
Get signature of message from user key service
- Parameters:
message (bytes) – Message to sign
- Returns:
Signature of the given message
- Return type:
bytes
- abstract property slot_index: cryptnoxpy.SlotIndex
Compatible slot index on the card :rtype: cryptnoxpy.SlotIndex
- Type:
return
- property custom_bit: int
Custom bit to use for checking if method is enabled, -1 for not used :rtype: int
- Type:
return
Module contents
The cryptnoxpro.command.user_keys package provides authentication functionality and exports:
- cryptnoxpro.command.user_keys.add(data)
Add a new authentication method. See
cryptnoxpro.command.user_keys.authentication.add()for details.
- cryptnoxpro.command.user_keys.authenticate(data)
Authenticate using a configured method. See
cryptnoxpro.command.user_keys.authentication.authenticate()for details.
- cryptnoxpro.command.user_keys.delete(data)
Delete an authentication method. See
cryptnoxpro.command.user_keys.authentication.delete()for details.
- cryptnoxpro.command.user_keys.get(data)
Get information about authentication methods. See
cryptnoxpro.command.user_keys.authentication.get()for details.