Package pulp :: Package server :: Package auth :: Module certificate :: Class Key
[hide private]
[frames] | no frames]

Class Key

source code

object --+
         |
        Key

The (private|public) key.

Instance Methods [hide private]
 
__init__(self, content)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
write(self, path)
Write the key.
source code
 
delete(self)
Delete the file associated with this key.
source code
 
__str__(self)
str(x)
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Class Methods [hide private]
 
read(cls, path)
Read the key.
source code
Instance Variables [hide private]
str content
The PEM encoded key.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

read(cls, path)
Class Method

source code 

Read the key.

Parameters:
  • path (str) - The path to the .pem file.

__init__(self, content)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • content (str) - The PEM encoded key.
Overrides: object.__init__

write(self, path)

source code 

Write the key.

Parameters:
  • path (str) - The path to the .pem file.
Returns:
self

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)