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

Class PGP_UserID

source code

    object --+    
             |    
PGP_BasePacket --+
                 |
                PGP_UserID
Known Subclasses:
PGP_UserAttribute

Instance Methods [hide private]
 
initialize(self)
initialize is executed at object creation time, after setUp(), and generally everywhere the state has to be reset.
source code
 
parseBody(self) source code
 
toString(self) source code
 
addSignatures(self, signatures)
Add signatures to this UserID
source code
 
adoptSignature(self, sig)
Adopt the signature, if it's not ours already
source code
 
iterSignatures(self)
Iterate over this user's UserID
source code
 
iterSubPackets(self)
Iterate over this user's UserID
source code
 
iterKeySignatures(self, keyId) source code
 
iterCertifications(self) source code
 
writeHash(self, stream, keyVersion)
Write a UserID packet in a stream, in order to be hashed.
source code
 
merge(self, other)
Merges this UserID packet to the other one.
source code
 
getExpiration(self)
Return the key expiration offset, or None if the key does not expire.
source code

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

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

Static Methods [hide private]

Inherited from PGP_BasePacket: checkStreamLength, readTimestamp

Class Variables [hide private]
  tag = 13
  _parentPacketTypes = set([5, 6])
  signingConstant = 180

Inherited from PGP_BasePacket: BUFFER_SIZE

Properties [hide private]
  _parentPacket
  id
  signatures

Inherited from PGP_BasePacket: bodyLength, headerLength

Inherited from object: __class__

Method Details [hide private]

initialize(self)

source code 
initialize is executed at object creation time, after setUp(), and generally everywhere the state has to be reset. To be overridden by various subclasses
Overrides: PGP_BasePacket.initialize
(inherited documentation)

writeHash(self, stream, keyVersion)

source code 
Write a UserID packet in a stream, in order to be hashed. Described in RFC 4880 5.2.4 computing signatures.

merge(self, other)

source code 
Merges this UserID packet to the other one. Returns True if it changed the current packet

getExpiration(self)

source code 
Return the key expiration offset, or None if the key does not expire. If the key is revoked, -1 is returned