RAPP Platform API
 All Classes Namespaces Files Functions Variables Typedefs
RappCloud.ServiceController.RAPPAuth.RAPPAuth Class Reference
Inheritance diagram for RappCloud.ServiceController.RAPPAuth.RAPPAuth:
Collaboration diagram for RappCloud.ServiceController.RAPPAuth.RAPPAuth:

Public Member Functions

def __init__
 Constructor. More...
 
def __call__
 Append the application token to the HTTP application protocol header. More...
 

Private Member Functions

def __load_token
 Load the RAPP Platform authentication token. More...
 
def __read_token_from_file
 Read and token string stored in a file. More...
 

Private Attributes

 _token
 
 _tokenStoreDir
 

Detailed Description

RAPP Authentication Class

Implements the RAPP Authentication mechanism for Platform requests.

Definition at line 34 of file RAPPAuth.py.

Constructor & Destructor Documentation

def RappCloud.ServiceController.RAPPAuth.RAPPAuth.__init__ (   self,
  token = '',
  svcname = '' 
)

Constructor.

Parameters
stringtoken
stringsvcname - The service/application name.

Definition at line 40 of file RAPPAuth.py.

Member Function Documentation

def RappCloud.ServiceController.RAPPAuth.RAPPAuth.__call__ (   self,
  r 
)

Append the application token to the HTTP application protocol header.

Modify the request object. Append token string to the Accept-Token field of the request header.

Definition at line 55 of file RAPPAuth.py.

def RappCloud.ServiceController.RAPPAuth.RAPPAuth.__load_token (   self,
  svcname = "" 
)
private

Load the RAPP Platform authentication token.

Currently only one application token exists, giving access to all the RAPP Platform services!!

Definition at line 65 of file RAPPAuth.py.

def RappCloud.ServiceController.RAPPAuth.RAPPAuth.__read_token_from_file (   self,
  filepath 
)
private

Read and token string stored in a file.

Parameters
filepathstring - The token file path.

Definition at line 75 of file RAPPAuth.py.

Member Data Documentation

RappCloud.ServiceController.RAPPAuth.RAPPAuth._token
private

Definition at line 50 of file RAPPAuth.py.

RappCloud.ServiceController.RAPPAuth.RAPPAuth._tokenStoreDir
private

Definition at line 47 of file RAPPAuth.py.


The documentation for this class was generated from the following file: