mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-18 02:12:06 +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);
|
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 userId userId
|
||||||
* @param email if true, the user-ID will be treated as an email address and all user-IDs containing
|
* @param email if true, the user-ID will be treated as an email address and all user-IDs containing
|
||||||
|
@ -43,7 +43,7 @@ public interface CertificateAuthority {
|
||||||
* 60 = partially authenticated...)
|
* 60 = partially authenticated...)
|
||||||
* @return list of identified bindings
|
* @return list of identified bindings
|
||||||
*/
|
*/
|
||||||
List<CertificateAuthenticity> identify(@Nonnull String userId,
|
List<CertificateAuthenticity> lookup(@Nonnull String userId,
|
||||||
boolean email,
|
boolean email,
|
||||||
@Nonnull Date referenceTime,
|
@Nonnull Date referenceTime,
|
||||||
int targetAmount);
|
int targetAmount);
|
||||||
|
|
|
@ -127,7 +127,7 @@ public class EncryptionOptions {
|
||||||
* @return encryption options
|
* @return encryption options
|
||||||
*/
|
*/
|
||||||
public EncryptionOptions addAuthenticatableRecipients(String userId, boolean email, CertificateAuthority authority, int targetAmount) {
|
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;
|
boolean foundAcceptable = false;
|
||||||
for (CertificateAuthenticity candidate : identifiedCertificates) {
|
for (CertificateAuthenticity candidate : identifiedCertificates) {
|
||||||
if (candidate.isAuthenticated()) {
|
if (candidate.isAuthenticated()) {
|
||||||
|
|
Loading…
Reference in a new issue