Package conary :: Package lib :: Module openpgpkey :: Class DiskKeyCacheCallback
[hide private]
[frames] | no frames]

Class DiskKeyCacheCallback

source code

            object --+            
                     |            
    callbacks.Callback --+        
                         |        
callbacks.KeyCacheCallback --+    
                             |    
              KeyCacheCallback --+
                                 |
                                DiskKeyCacheCallback

Retrieve keys from a directory - keys are saved as <keyid>.asc

Instance Methods [hide private]
 
_formatSource(self, source)
For the disk case, this is a no-op
source code
str
findOpenPGPKey(self, source, keyId)
Look up the key in the specified source.
source code
 
__init__(self, dirSource, cfg=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code

Inherited from KeyCacheCallback: getPublicKey

Inherited from callbacks.Callback: __getattribute__, cancelOperation

Inherited from callbacks.Callback (private): _exceptionOccured

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_formatSource(self, source)

source code 
For the disk case, this is a no-op
Overrides: KeyCacheCallback._formatSource

findOpenPGPKey(self, source, keyId)

source code 
Look up the key in the specified source.
Returns: str
the unarmored key
Overrides: KeyCacheCallback.findOpenPGPKey

See Also: KeyCacheCallback.findOpenPGPKey

__init__(self, dirSource, cfg=None)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: callbacks.KeyCacheCallback.__init__