1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-12-10 06:11:08 +01:00

Add KeyRingInfo.getVersion()

This commit is contained in:
Paul Schaub 2021-06-26 16:30:54 +02:00
parent 98609375d1
commit dae5288456
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
2 changed files with 11 additions and 0 deletions

View file

@ -727,6 +727,15 @@ public class KeyRingInfo {
return false;
}
/**
* Return the version number of the public keys format.
*
* @return version
*/
public int getVersion() {
return keys.getPublicKey().getVersion();
}
/**
* Return a list of all subkeys which can be used for encryption of the given purpose.
* This list does not include expired or revoked keys.