MCPcopy Create free account
hub / github.com/SecurityInnovation/PGPy / add_uid

Method add_uid

pgpy/pgp.py:1820–1836  ·  view source on GitHub ↗

Add a User ID to this key. :param uid: The user id to add :type uid: :py:obj:`~pgpy.PGPUID` :param selfsign: Whether or not to self-sign the user id before adding it :type selfsign: ``bool`` Valid optional keyword arguments are identical to those of

(self, uid, selfsign=True, **prefs)

Source from the content-addressed store, hash-verified

1818 sk._key.keymaterial.clear()
1819
1820 def add_uid(self, uid, selfsign=True, **prefs):
1821 """
1822 Add a User ID to this key.
1823
1824 :param uid: The user id to add
1825 :type uid: :py:obj:`~pgpy.PGPUID`
1826 :param selfsign: Whether or not to self-sign the user id before adding it
1827 :type selfsign: ``bool``
1828
1829 Valid optional keyword arguments are identical to those of self-signatures for :py:meth:`PGPKey.certify`.
1830 Any such keyword arguments are ignored if selfsign is ``False``
1831 """
1832 uid._parent = self
1833 if selfsign:
1834 uid |= self.certify(uid, SignatureType.Positive_Cert, **prefs)
1835
1836 self |= uid
1837
1838 def get_uid(self, search):
1839 """

Callers 6

temp_keyFunction · 0.80
test_gen_keyMethod · 0.80
test_add_altuidMethod · 0.80
test_add_photoMethod · 0.80
abeFunction · 0.80

Calls 1

certifyMethod · 0.95

Tested by 6

temp_keyFunction · 0.64
test_gen_keyMethod · 0.64
test_add_altuidMethod · 0.64
test_add_photoMethod · 0.64
abeFunction · 0.64