ConsoleUser
Copyright (c) 2010-2023 Skaion Corporarion, www.skaion.com
This project was developed in part by numerous sponsorships from the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints of Governmental purposes notwithstanding any copyright notation thereon.
All content reflects those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the U.S. Government or Skaion Corporation.
- class Firewall.Firewall(system, config, vtype=None)¶
I am the public interface common to all Firewall implementations
Parameters:
system: a <no title> object to interact with the target system
config: a <no title> that defines this user
vtype: optionally the type of Firewall to be wrapped by this instance, otherwise the value is read from config
- exit(save=False)¶
Close the application, though not necessarily those resident components like live protection or those which remain resident in the system tray.
Parameters:
save: ignored here, but accepted for a common function prototype
- handle_alert(category=None, program=None)¶
Handle a real-time alert displayed by the Firewall
- handle_connection(connection=None, action=None)¶
Handle a real-time alert displayed by the Firewall
- open()¶
Launch the application
- Firewall.get_firewall(system, config, wall_type=None)¶
A Factory method which creates a concrete instance of the provided class type
Parameters:
system: a <no title> object to interact with the remote system
config: a <no title> object containing our configuration
wall_type: the Class type to load regardless of the config object
Return: an instance of a concrete Class type or None if the type is not known