Added warnings for insecure keys

This commit is contained in:
Hari
2017-02-03 16:11:29 +05:30
parent 5b026386e1
commit 62a14399ea
12 changed files with 104 additions and 39 deletions

View File

@@ -136,6 +136,10 @@ public class CanonicalizedPublicKey extends UncachedPublicKey {
return expiry != null && expiry.before(new Date());
}
public boolean isSecure() {
return PgpSecurityConstants.isSecureKey(this);
}
public long getValidSeconds() {
long seconds;