mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-18 02:12:06 +01:00
Further integration of pgpainless-wot
This commit is contained in:
parent
616820fe0f
commit
28e4bc44a1
2 changed files with 14 additions and 1 deletions
|
@ -107,7 +107,7 @@ public class MessageMetadata {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return true, if the message was signed by a certificate for which we can authenticate a binding to the given userId.
|
* Return true, if the message was verifiably signed by a certificate for which we can authenticate a binding to the given userId.
|
||||||
*
|
*
|
||||||
* @param userId userId
|
* @param userId userId
|
||||||
* @param email if true, treat the user-id as an email address and match all userIDs containing this address
|
* @param email if true, treat the user-id as an email address and match all userIDs containing this address
|
||||||
|
|
|
@ -115,6 +115,19 @@ public class EncryptionOptions {
|
||||||
return new EncryptionOptions(EncryptionPurpose.STORAGE);
|
return new EncryptionOptions(EncryptionPurpose.STORAGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Identify authenticatable certificates for the given user-ID by querying the {@link CertificateAuthority} for
|
||||||
|
* identifiable bindings.
|
||||||
|
* Add all acceptable bindings, whose trust amount is larger or equal to the target amount to the list of recipients.
|
||||||
|
* @param userId userId
|
||||||
|
* @param email if true, treat the user-ID as an email address and match all user-IDs containing the mail address
|
||||||
|
* @param authority certificate authority
|
||||||
|
* @return encryption options
|
||||||
|
*/
|
||||||
|
public EncryptionOptions addAuthenticatableRecipients(String userId, boolean email, CertificateAuthority authority) {
|
||||||
|
return addAuthenticatableRecipients(userId, email, authority, 120);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Identify authenticatable certificates for the given user-ID by querying the {@link CertificateAuthority} for
|
* Identify authenticatable certificates for the given user-ID by querying the {@link CertificateAuthority} for
|
||||||
* identifiable bindings.
|
* identifiable bindings.
|
||||||
|
|
Loading…
Reference in a new issue