wrapped-key-ring: move more helper methods into keys

This commit is contained in:
Vincent Breitmoser
2014-05-03 19:04:23 +02:00
parent 1f8210f743
commit 2176e1ef1c
5 changed files with 153 additions and 15 deletions

View File

@@ -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 {