Package conary :: Package lib :: Module openpgpfile :: Class PGP_SubKey
[hide private]
[frames] | no frames]

Class PGP_SubKey

source code

    object --+            
             |            
PGP_BasePacket --+        
                 |        
    PGP_BaseKeySig --+    
                     |    
               PGP_Key --+
                         |
                        PGP_SubKey
Known Subclasses:
PGP_PublicSubKey, PGP_SecretSubKey

Instance Methods [hide private]
 
setUp(self)
setUp is executed at object creation time.
source code
 
setBindingSig(self, sig) source code
 
setRevocationSig(self, sig) source code
 
iterSubPackets(self) source code
 
iterCertifications(self) source code
 
iterUserIds(self) source code
 
iterSelfSignatures(self) source code
 
iterAllSelfSignatures(self)
Iterate over direct signatures and UserId signatures
source code
 
getMainKey(self)
Return the main key for this subkey
source code
 
verifySelfSignatures(self) source code
 
iterSubKeys(self) source code
 
iterSignatures(self) source code
 
merge(self, other)
Merge this subkey with the other key
source code
 
iterSelfSigCertifications(self) source code
 
iterSelfSigRevocations(self) source code
 
getEndOfLife(self)
Parse self signatures to find timestamp(s) of key expiration.
source code

Inherited from PGP_Key: adoptSignature, assertSigningKey, getCreatedTimestamp, getCryptoKey, getKeyFingerprint, getKeyId, getPublicKeyTuple, initialize, makePgpKey, parse

Inherited from PGP_BaseKeySig: readMPIs, skipMPIs

Inherited from PGP_BaseKeySig (private): _getMPICount, _readMPIs

Inherited from PGP_BasePacket: __init__, clone, getBodyStream, getParentPacket, isEmpty, next, readBin, readBody, readExact, resetBody, seek, setNextStream, setParentPacket, write, writeAll, writeBody, writeHeader

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

Static Methods [hide private]

Inherited from PGP_BaseKeySig (private): _readCountMPIs, _writeMPI

Inherited from PGP_BasePacket: checkStreamLength, readTimestamp

Class Variables [hide private]
  pubTag = 6
  _parentPacketTypes = set([5, 6])

Inherited from PGP_Key: tag

Inherited from PGP_BasePacket: BUFFER_SIZE

Properties [hide private]

Inherited from PGP_Key: createdTimestamp, daysValid, mpiFile, mpiLen, pubKeyAlg, version

Inherited from PGP_Key (private): _keyId, _parsed

Inherited from PGP_BasePacket: bodyLength, headerLength

Inherited from object: __class__

Method Details [hide private]

setUp(self)

source code 
setUp is executed at object creation time.
Overrides: PGP_BasePacket.setUp
(inherited documentation)

iterSelfSignatures(self)

source code 
Overrides: PGP_Key.iterSelfSignatures

iterAllSelfSignatures(self)

source code 
Iterate over direct signatures and UserId signatures
Overrides: PGP_Key.iterAllSelfSignatures

getEndOfLife(self)

source code 
Parse self signatures to find timestamp(s) of key expiration. Also seek out any revocation timestamps. We don't need to actually verify these signatures. See verifySelfSignatures() Returns bool, timestamp (is revoked, expiration)
Overrides: PGP_Key.getEndOfLife