mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-23 03:17:58 +01:00
Rename CertificateAuthority methods
This commit is contained in:
parent
c26ddc116e
commit
44690d063c
2 changed files with 13 additions and 13 deletions
|
@ -33,7 +33,7 @@ public interface CertificateAuthority {
|
|||
* 60 = partially authenticated...)
|
||||
* @return information about the authenticity of the binding
|
||||
*/
|
||||
CertificateAuthenticity authenticate(@Nonnull OpenPgpFingerprint fingerprint,
|
||||
CertificateAuthenticity authenticateBinding(@Nonnull OpenPgpFingerprint fingerprint,
|
||||
@Nonnull String userId,
|
||||
boolean email,
|
||||
@Nonnull Date referenceTime,
|
||||
|
@ -50,7 +50,7 @@ public interface CertificateAuthority {
|
|||
* 60 = partially authenticated...)
|
||||
* @return list of identified bindings
|
||||
*/
|
||||
List<CertificateAuthenticity> lookup(@Nonnull String userId,
|
||||
List<CertificateAuthenticity> lookupByUserId(@Nonnull String userId,
|
||||
boolean email,
|
||||
@Nonnull Date referenceTime,
|
||||
int targetAmount);
|
||||
|
@ -65,7 +65,7 @@ public interface CertificateAuthority {
|
|||
* 60 = partially authenticated...)
|
||||
* @return list of identified bindings
|
||||
*/
|
||||
List<CertificateAuthenticity> identify(@Nonnull OpenPgpFingerprint fingerprint,
|
||||
List<CertificateAuthenticity> identifyByFingerprint(@Nonnull OpenPgpFingerprint fingerprint,
|
||||
@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.lookup(userId, email, new Date(), targetAmount);
|
||||
List<CertificateAuthenticity> identifiedCertificates = authority.lookupByUserId(userId, email, new Date(), targetAmount);
|
||||
boolean foundAcceptable = false;
|
||||
for (CertificateAuthenticity candidate : identifiedCertificates) {
|
||||
if (candidate.isAuthenticated()) {
|
||||
|
|
Loading…
Reference in a new issue