aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/entities/Account.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-05-01 22:33:49 +0200
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-05-01 22:33:49 +0200
commit37c8e157d0030c478ea00fbc407c8365b400af1a (patch)
tree89c3344aac980a087632d97089037d0ee15af9f2 /src/eu/siacs/conversations/entities/Account.java
parent4b66b4b5d1c6376c964d1f252b813ba21b80a64d (diff)
reworked openpgp integration part #1
Diffstat (limited to 'src/eu/siacs/conversations/entities/Account.java')
-rw-r--r--src/eu/siacs/conversations/entities/Account.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/entities/Account.java b/src/eu/siacs/conversations/entities/Account.java
index 41132b1f..35870aaa 100644
--- a/src/eu/siacs/conversations/entities/Account.java
+++ b/src/eu/siacs/conversations/entities/Account.java
@@ -275,4 +275,16 @@ public class Account extends AbstractEntity{
public int countPresences() {
return this.presences.size();
}
+
+ public String getPgpSignature() {
+ if (keys.has("pgp_signature")) {
+ try {
+ return keys.getString("pgp_signature");
+ } catch (JSONException e) {
+ return null;
+ }
+ } else {
+ return null;
+ }
+ }
}