diff options
author | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-02-02 17:53:34 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-02-02 17:53:34 +0100 |
commit | 3d9294684c739cc54de8dfa08ad22097ca8a1811 (patch) | |
tree | 28f5bd5b6f5dfa7c955db5a0b8ac25fc8bcfd443 /src/de/gultsch/chat/entities | |
parent | bbdaf5b0bd7c42729aeba12f3b4ea4cabc794c4f (diff) |
tls is no optional
Diffstat (limited to '')
-rw-r--r-- | src/de/gultsch/chat/entities/Account.java | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |