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()) {