1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-22 19:08:00 +01:00

Add identify API endpoint

This commit is contained in:
Paul Schaub 2023-07-21 17:08:48 +02:00
parent ccbf4ab84d
commit c26ddc116e
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -54,4 +54,18 @@ public interface CertificateAuthority {
boolean email,
@Nonnull Date referenceTime,
int targetAmount);
/**
* Identify trustworthy bindings for a certificate.
* The result is a list of authenticatable userIds on the certificate.
*
* @param fingerprint fingerprint of the certificate
* @param referenceTime reference time for trust calculations
* @param targetAmount target trust amount (120 = fully authenticated, 240 = doubly authenticated,
* 60 = partially authenticated...)
* @return list of identified bindings
*/
List<CertificateAuthenticity> identify(@Nonnull OpenPgpFingerprint fingerprint,
@Nonnull Date referenceTime,
int targetAmount);
}