+class DKIM(TXT): # helper class to treat DKIM more antively
+ class Version:
+ DKIM1 = "DKIM1"
+
+ class Algorithm:
+ RSA = "rsa"
+
+ def __init__(self, selector, version, alg, key):
+ self._selector = check_label(selector)
+ version = check_label(version)
+ alg = check_label(alg)
+ key = check_key(key)
+ super(self).__init__("v={0}; k={1}; p={2}".format(version, alg, key))
+
+ def generate_rr(self, owner, zone):
+ return super(self).generate_rr('{0}._domainkey.{1}'.format(self._selector, owner), zone)
+
+