aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/KeyRing.java
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2014-10-09 00:58:07 +0200
committerDominik Schürmann <dominik@dominikschuermann.de>2014-10-09 00:58:07 +0200
commit49b4ff63122988dc1587844e6b4b2ee5d0855385 (patch)
tree5935990ff98baa2ee0f224ff666fad433e2f451a /OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/KeyRing.java
parent3165f3ffa8b16dcee11e6dfc21492b556d0c1de3 (diff)
downloadopen-keychain-49b4ff63122988dc1587844e6b4b2ee5d0855385.tar.gz
open-keychain-49b4ff63122988dc1587844e6b4b2ee5d0855385.tar.bz2
open-keychain-49b4ff63122988dc1587844e6b4b2ee5d0855385.zip
Replace PgpGeneralException with NotFoundException where appropriate
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/KeyRing.java')
-rw-r--r--OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/KeyRing.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/KeyRing.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/KeyRing.java
index b682378e9..17d20a326 100644
--- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/KeyRing.java
+++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/KeyRing.java
@@ -20,7 +20,7 @@ package org.sufficientlysecure.keychain.pgp;
import android.text.TextUtils;
-import org.sufficientlysecure.keychain.pgp.exception.PgpGeneralException;
+import org.sufficientlysecure.keychain.provider.ProviderHelper.NotFoundException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@@ -38,25 +38,25 @@ import java.util.regex.Pattern;
*/
public abstract class KeyRing {
- abstract public long getMasterKeyId() throws PgpGeneralException;
+ abstract public long getMasterKeyId() throws NotFoundException;
- abstract public String getPrimaryUserId() throws PgpGeneralException;
+ abstract public String getPrimaryUserId() throws NotFoundException;
- abstract public String getPrimaryUserIdWithFallback() throws PgpGeneralException;
+ abstract public String getPrimaryUserIdWithFallback() throws NotFoundException;
- public String[] getSplitPrimaryUserIdWithFallback() throws PgpGeneralException {
+ public String[] getSplitPrimaryUserIdWithFallback() throws NotFoundException {
return splitUserId(getPrimaryUserIdWithFallback());
}
- abstract public boolean isRevoked() throws PgpGeneralException;
+ abstract public boolean isRevoked() throws NotFoundException;
- abstract public boolean canCertify() throws PgpGeneralException;
+ abstract public boolean canCertify() throws NotFoundException;
- abstract public long getEncryptId() throws PgpGeneralException;
+ abstract public long getEncryptId() throws NotFoundException;
- abstract public boolean hasEncrypt() throws PgpGeneralException;
+ abstract public boolean hasEncrypt() throws NotFoundException;
- abstract public int getVerified() throws PgpGeneralException;
+ abstract public int getVerified() throws NotFoundException;
private static final Pattern USER_ID_PATTERN = Pattern.compile("^(.*?)(?: \\((.*)\\))?(?: <(.*)>)?$");