wrapped-key-ring: move more helper methods into keys
This commit is contained in:
1 parent
1f8210f743
commit
2176e1ef1c
5 files changed
+153
-15
No files matched your search
+2
@@ -197,6 +197,7 @@ public class PassphraseCacheService extends Service {
|
||||
return cachedPassphrase;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static boolean hasPassphrase(PGPSecretKeyRing secretKeyRing) {
|
||||
PGPSecretKey secretKey = null;
|
||||
boolean foundValidKey = false;
|
||||
@@ -228,6 +229,7 @@ public class PassphraseCacheService extends Service {
|
||||
* @param secretKeyId
|
||||
* @return true if it has a passphrase
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean hasPassphrase(Context context, long secretKeyId) {
|
||||
// check if the key has no passphrase
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user