From 15863cabd1b2871681ca9cb55746dca3f52ef802 Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Tue, 13 Apr 2010 19:19:08 +0200 Subject: [PATCH] Server: setUseSSL(), useSSL() --- src/org/yaaic/model/Server.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/org/yaaic/model/Server.java b/src/org/yaaic/model/Server.java index 255be72..1af5827 100644 --- a/src/org/yaaic/model/Server.java +++ b/src/org/yaaic/model/Server.java @@ -38,6 +38,7 @@ public class Server private int port; private String password; private String charset; + private boolean useSSL = false; private Identity identity; private LinkedHashMap conversations = new LinkedHashMap(); @@ -194,6 +195,24 @@ public class Server return charset; } + /** + * Set if this connections needs to use ssl + */ + public void setUseSSL(boolean useSSL) + { + this.setUseSSL(useSSL); + } + + /** + * Does this connection use SSL? + * + * @return true if SSL should be used, false otherwise + */ + public boolean useSSL() + { + return useSSL; + } + /** * Set connection status of server *