angelos.net.authentication

Authentication handler.

class angelos.net.authentication.AuthenticationClient(manager: Protocol)

Bases: angelos.net.authentication.AuthenticationHandler

auth_admin() → bool

Authenticate an administrator against server.

auth_net() → bool

Authenticate a network against another network.

auth_node() → bool

Authenticate a node within a network.

auth_user() → bool

Authenticate a user against a network.

class angelos.net.authentication.AuthenticationHandler(manager: Protocol)

Bases: angelos.net.base.Handler

LEVEL = 1
RANGE = 1
ST_CLIENT_ID = 8
ST_CLIENT_NODE = 9
ST_CLIENT_PUBLIC = 10
ST_CLIENT_SIGNATURE = 12
ST_CLIENT_SPECIMEN = 11
ST_CLIENT_TIME = 13
ST_LOGIN = 2
ST_SERVER_ID = 3
ST_SERVER_PUBLIC = 4
ST_SERVER_SIGNATURE = 6
ST_SERVER_SPECIMEN = 5
ST_SERVER_TIME = 7
ST_VERSION = 1
class angelos.net.authentication.AuthenticationServer(manager: Protocol)

Bases: angelos.net.authentication.AuthenticationHandler

class angelos.net.authentication.LoginTypeCode

Bases: object

LOGIN_ADMIN = b'\x04'
LOGIN_NET = b'\x03'
LOGIN_NODE = b'\x02'
LOGIN_USER = b'\x01'