mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-22 19:08:00 +01:00
s/identify/lookup
This commit is contained in:
parent
bf9bf94fb0
commit
8926ff9dfb
2 changed files with 6 additions and 6 deletions
|
@ -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<CertificateAuthenticity> identify(@Nonnull String userId,
|
||||
boolean email,
|
||||
@Nonnull Date referenceTime,
|
||||
int targetAmount);
|
||||
List<CertificateAuthenticity> lookup(@Nonnull String userId,
|
||||
boolean email,
|
||||
@Nonnull Date referenceTime,
|
||||
int targetAmount);
|
||||
}
|
||||
|
|
|
@ -127,7 +127,7 @@ public class EncryptionOptions {
|
|||
* @return encryption options
|
||||
*/
|
||||
public EncryptionOptions addAuthenticatableRecipients(String userId, boolean email, CertificateAuthority authority, int targetAmount) {
|
||||
List<CertificateAuthenticity> identifiedCertificates = authority.identify(userId, email, new Date(), targetAmount);
|
||||
List<CertificateAuthenticity> identifiedCertificates = authority.lookup(userId, email, new Date(), targetAmount);
|
||||
boolean foundAcceptable = false;
|
||||
for (CertificateAuthenticity candidate : identifiedCertificates) {
|
||||
if (candidate.isAuthenticated()) {
|
||||
|
|
Loading…
Reference in a new issue