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)
| 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 | """ |