Exemple #1
0
    def add_key_from_str(self, username, key, comment=""):
        type, key, key_comment = parse_public_key(key)

        if not comment:
            comment = key_comment

        self.add_key(username, type, key, comment)
Exemple #2
0
 def has_key_str(self, key):
     type, key, comment = parse_public_key(key)
     return self.pubkeys.has_key(key)