mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-23 03:17:58 +01:00
Add KeyRingInfo constructor that takes Policy instance
This commit is contained in:
parent
3f40fb99ef
commit
0c0f82ce2e
1 changed files with 12 additions and 1 deletions
|
@ -86,8 +86,19 @@ public class KeyRingInfo {
|
|||
* @param validationDate date of validation
|
||||
*/
|
||||
public KeyRingInfo(PGPKeyRing keys, Date validationDate) {
|
||||
this(keys, PGPainless.getPolicy(), validationDate);
|
||||
}
|
||||
|
||||
/**
|
||||
* Evaluate the key ring at the provided validation date.
|
||||
*
|
||||
* @param keys key ring
|
||||
* @param policy policy
|
||||
* @param validationDate validation date
|
||||
*/
|
||||
public KeyRingInfo(PGPKeyRing keys, Policy policy, Date validationDate) {
|
||||
this.keys = keys;
|
||||
this.signatures = new Signatures(keys, validationDate, PGPainless.getPolicy());
|
||||
this.signatures = new Signatures(keys, validationDate, policy);
|
||||
this.evaluationDate = validationDate;
|
||||
this.primaryUserId = findPrimaryUserId();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue