diff options
-rw-r--r-- | openpgp/src/cert.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/openpgp/src/cert.rs b/openpgp/src/cert.rs index 5090a4e6..29782b44 100644 --- a/openpgp/src/cert.rs +++ b/openpgp/src/cert.rs @@ -589,8 +589,16 @@ use super::*; /// /// # Filtering Certificates /// -/// To filter certificates, iterate over all components, clone what -/// you want to keep, and then reassemble the certificate. The +/// Component-wise filtering of userids, user attributes, and subkeys +/// can be done with [`Cert::retain_userids`], +/// [`Cert::retain_user_attributes`], and [`Cert::retain_subkeys`]. +/// +/// [`Cert::retain_userids`]: #method.retain_userids +/// [`Cert::retain_user_attributes`]: #method.retain_user_attributes +/// [`Cert::retain_subkeys`]: #method.retain_subkeys +/// +/// If you need even more control, iterate over all components, clone +/// what you want to keep, and then reassemble the certificate. The /// following example simply copies all the packets, and can be /// adapted to suit your policy: /// |