From 8926ff9dfb74d62d7cec56ca1a75bb1a8b9ae90c Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Fri, 21 Jul 2023 16:50:49 +0200 Subject: [PATCH] s/identify/lookup --- .../authentication/CertificateAuthority.java | 10 +++++----- .../encryption_signing/EncryptionOptions.java | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pgpainless-core/src/main/java/org/pgpainless/authentication/CertificateAuthority.java b/pgpainless-core/src/main/java/org/pgpainless/authentication/CertificateAuthority.java index 5c7f60cd..01b1a6bc 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/authentication/CertificateAuthority.java +++ b/pgpainless-core/src/main/java/org/pgpainless/authentication/CertificateAuthority.java @@ -33,7 +33,7 @@ public interface CertificateAuthority { int targetAmount); /** - * Identify certificates, which carry a trustworthy binding to the given userId. + * Lookup certificates, which carry a trustworthy binding to the given userId. * * @param userId userId * @param email if true, the user-ID will be treated as an email address and all user-IDs containing @@ -43,8 +43,8 @@ public interface CertificateAuthority { * 60 = partially authenticated...) * @return list of identified bindings */ - List identify(@Nonnull String userId, - boolean email, - @Nonnull Date referenceTime, - int targetAmount); + List lookup(@Nonnull String userId, + boolean email, + @Nonnull Date referenceTime, + int targetAmount); } diff --git a/pgpainless-core/src/main/java/org/pgpainless/encryption_signing/EncryptionOptions.java b/pgpainless-core/src/main/java/org/pgpainless/encryption_signing/EncryptionOptions.java index 44122bdc..cbb6bbd9 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/encryption_signing/EncryptionOptions.java +++ b/pgpainless-core/src/main/java/org/pgpainless/encryption_signing/EncryptionOptions.java @@ -127,7 +127,7 @@ public class EncryptionOptions { * @return encryption options */ public EncryptionOptions addAuthenticatableRecipients(String userId, boolean email, CertificateAuthority authority, int targetAmount) { - List identifiedCertificates = authority.identify(userId, email, new Date(), targetAmount); + List identifiedCertificates = authority.lookup(userId, email, new Date(), targetAmount); boolean foundAcceptable = false; for (CertificateAuthenticity candidate : identifiedCertificates) { if (candidate.isAuthenticated()) {