Table of contents Index

class Service

Declared in module Service

Inheritance hierarchy:

Service.Service
  Service.AbstractService

Synopsis

class Service(AbstractService):
    def Service.Service.__init__(self, name, chainer, proxy_class, auth=None) # Initializes a Service instance.
    def Service.Service.startInstance(self, session) # Start an instance of this session.

    # Inherited from Service.AbstractService
    def Service.AbstractService.__init__(self, name) # Initializes an AbstractService instance or a derivative.
    def Service.AbstractService.__str__(self)
    def Service.AbstractService.startInstance(self, session) # Function to start an instance of this service.

None auth = None
None chainer = None
None proxy_class = None

Description

Service encapsulates a firewall service going through the firewall. A service consists of a Proxy class, a chainer instance and an authenticator instance.

Attributes:

chainer
The chainer class used for the service
proxy_class
The proxy class used for the service
auth
Authentication handling class (None if no authentication)


Service.Service.__init__(self, name, chainer, proxy_class, auth=None)

Initializes a Service instance.

Arguments:

name
Name of this service (used in access control)
chainer
The chainer class used for the service
proxy_class-- The proxy class used for the service
auth
Authentication handling class (None if no authentication) (FIXME: not working currently)


Service.Service.startInstance(self, session)

Start an instance of this session.

self
this instance
session
The session object
Called by the Listener to create an instance of this service.

Notes:

Authenticates the user, and starts a proxy using the session
Copyright © 2000 BalaBit IT Ltd.
Written by: Balázs Scheidler