16 lines
399 B
Python
16 lines
399 B
Python
from __future__ import absolute_import, unicode_literals
|
|
|
|
|
|
class KeyStub(object):
|
|
def __init__(self, raw):
|
|
self.fingerprint = raw['keyid']
|
|
self.key_type = raw['type']
|
|
self.date = raw['date']
|
|
self.expires = raw['expires']
|
|
self.length = raw['length']
|
|
self.uids = raw['uids']
|
|
|
|
@property
|
|
def key_id(self):
|
|
return self.fingerprint[-8:]
|