diff options
author | Dominik <dominik@dominikschuermann.de> | 2012-03-09 11:08:22 +0100 |
---|---|---|
committer | Dominik <dominik@dominikschuermann.de> | 2012-03-09 11:08:22 +0100 |
commit | 781f089ee1730f596015145706f2302218efeaed (patch) | |
tree | 4dc61e290f4f90ae59f236b50235dbd787b32a6c /src/org/thialfihar/android/apg/KeyServer.java | |
parent | 5ede7d475617257656bf894d39b5eed1853a7231 (diff) | |
parent | debb90409a0a90ce9351c83e42cb72f8935bacb1 (diff) | |
download | open-keychain-781f089ee1730f596015145706f2302218efeaed.tar.gz open-keychain-781f089ee1730f596015145706f2302218efeaed.tar.bz2 open-keychain-781f089ee1730f596015145706f2302218efeaed.zip |
merged senecasos repo
Diffstat (limited to 'src/org/thialfihar/android/apg/KeyServer.java')
-rw-r--r-- | src/org/thialfihar/android/apg/KeyServer.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/org/thialfihar/android/apg/KeyServer.java b/src/org/thialfihar/android/apg/KeyServer.java index b31ace887..c6782632e 100644 --- a/src/org/thialfihar/android/apg/KeyServer.java +++ b/src/org/thialfihar/android/apg/KeyServer.java @@ -12,12 +12,19 @@ public abstract class KeyServer { super(message); } } + static public class TooManyResponses extends Exception { private static final long serialVersionUID = 2703768928624654513L; } + static public class InsufficientQuery extends Exception { private static final long serialVersionUID = 2703768928624654514L; } + + static public class AddKeyException extends Exception { + private static final long serialVersionUID = -507574859137295530L; + } + static public class KeyInfo implements Serializable { private static final long serialVersionUID = -7797972113284992662L; Vector<String> userIds; @@ -28,6 +35,8 @@ public abstract class KeyServer { int size; String algorithm; } + abstract List<KeyInfo> search(String query) throws QueryException, TooManyResponses, InsufficientQuery; abstract String get(long keyId) throws QueryException; + abstract void add(String armouredText) throws AddKeyException; } |