mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-12-10 22:31:09 +01:00
Rename user-id deletion methods
This commit is contained in:
parent
74609e0ef7
commit
021fd7846e
2 changed files with 5 additions and 5 deletions
|
|
@ -167,7 +167,7 @@ public final class KeyRingUtils {
|
|||
* @return modified secret keys
|
||||
*/
|
||||
@Deprecated
|
||||
public static PGPSecretKeyRing deleteUserIdFromSecretKeyRing(PGPSecretKeyRing secretKeys, String userId) {
|
||||
public static PGPSecretKeyRing deleteUserId(PGPSecretKeyRing secretKeys, String userId) {
|
||||
PGPSecretKey secretKey = secretKeys.getSecretKey(); // user-ids are located on primary key only
|
||||
PGPPublicKey publicKey = secretKey.getPublicKey(); // user-ids are placed on the public key part
|
||||
publicKey = PGPPublicKey.removeCertification(publicKey, userId);
|
||||
|
|
@ -191,7 +191,7 @@ public final class KeyRingUtils {
|
|||
* @return modified secret keys
|
||||
*/
|
||||
@Deprecated
|
||||
public static PGPPublicKeyRing deleteUserIdFromPublicKeyRing(PGPPublicKeyRing publicKeys, String userId) {
|
||||
public static PGPPublicKeyRing deleteUserId(PGPPublicKeyRing publicKeys, String userId) {
|
||||
PGPPublicKey publicKey = publicKeys.getPublicKey(); // user-ids are located on primary key only
|
||||
publicKey = PGPPublicKey.removeCertification(publicKey, userId);
|
||||
if (publicKey == null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue