From 3d9294684c739cc54de8dfa08ad22097ca8a1811 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sun, 2 Feb 2014 17:53:34 +0100 Subject: tls is no optional --- src/de/gultsch/chat/entities/Account.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/de/gultsch/chat/entities') diff --git a/src/de/gultsch/chat/entities/Account.java b/src/de/gultsch/chat/entities/Account.java index dcb5516a..79712b15 100644 --- a/src/de/gultsch/chat/entities/Account.java +++ b/src/de/gultsch/chat/entities/Account.java @@ -16,6 +16,8 @@ public class Account extends AbstractEntity{ public static final String OPTIONS = "options"; public static final String ROSTERVERSION = "rosterversion"; + public static final int OPTION_USETLS = 0; + protected String username; protected String server; protected String password; @@ -40,6 +42,10 @@ public class Account extends AbstractEntity{ this.rosterVersion = rosterVersion; } + public boolean isOptionSet(int option) { + return ((options & (1 << option)) != 0); + } + public String getUsername() { return username; } -- cgit v1.2.3