Package gofer :: Package rmi :: Module dispatcher :: Class Security
[hide private]
[frames] | no frames]

Class Security

source code

Layered Security.

Instance Methods [hide private]
 
__init__(self, method, fninfo) source code
 
apply(self, passed)
Apply auth specifications.
source code
instancemethod
impl(self, name)
Find auth implementation by name.
source code
 
secret(self, required, passed)
Perform shared secret auth.
source code
 
pam(self, required, passed)
Perform PAM authentication.
source code
Instance Variables [hide private]
str method
The method name.
list stack
The security stack; list of auth specifications defined by decorators.
Method Details [hide private]

__init__(self, method, fninfo)
(Constructor)

source code 
Parameters:
  • method (str) - The method name.
  • fninfo (Options) - The decorated function info.

apply(self, passed)

source code 

Apply auth specifications.

Parameters:
  • passed (Options.) - The request's auth info passed.
Raises:

impl(self, name)

source code 

Find auth implementation by name.

Parameters:
  • name (str) - auth type (name)
Returns: instancemethod
The implementation method

secret(self, required, passed)

source code 

Perform shared secret auth.

Parameters:
  • required (Options) - Method specific auth specification.
  • passed (Options) - The credentials passed.
Raises:

pam(self, required, passed)

source code 

Perform PAM authentication.

Parameters:
  • required (Options) - Method specific auth specification.
  • passed (Options) - The credentials passed.
Raises: