Package backend :: Package server :: Package rhnServer :: Module server_certificate :: Class Certificate
[hide private]
[frames] | no frames]

Class Certificate

source code

Main certificate class

Instance Methods [hide private]
 
__init__(self)
init data normally we include in the attrs: username, os_release, os, arch, system_id and fields
source code
 
__getitem__(self, key)
function that make it look like a dictionary for easy access
source code
 
__setitem__(self, name, value)
function that make it look like a dictionary for easy access updates the values of the attributes list with new values
source code
 
__repr__(self)
string format
source code
 
__str__(self)
string format
source code
 
certificate(self)
convert to XML
source code
 
compute_checksum(self, secret, algo='sha256')
Update the checksum
source code
 
set_secret(self, secret)
set the secret of the entry and recompute the checksum
source code
 
reload(self, text)
load data from a text certificate passed on by a client
source code
 
__validate_checksum(self, secret)
compute the current checksum against a secret and check it against the current checksum
source code
 
valid(self) source code
Class Variables [hide private]
  CheckSumFields = ['username', 'os_release', 'operating_system'...
Class Variable Details [hide private]

CheckSumFields

Value:
['username',
 'os_release',
 'operating_system',
 'architecture',
 'system_id',
 'type']