mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-12-03 06:12:16 -05:00
Server: setUseSSL(), useSSL()
This commit is contained in:
parent
1eaff46350
commit
15863cabd1
@ -38,6 +38,7 @@ public class Server
|
|||||||
private int port;
|
private int port;
|
||||||
private String password;
|
private String password;
|
||||||
private String charset;
|
private String charset;
|
||||||
|
private boolean useSSL = false;
|
||||||
private Identity identity;
|
private Identity identity;
|
||||||
|
|
||||||
private LinkedHashMap<String, Conversation> conversations = new LinkedHashMap<String, Conversation>();
|
private LinkedHashMap<String, Conversation> conversations = new LinkedHashMap<String, Conversation>();
|
||||||
@ -194,6 +195,24 @@ public class Server
|
|||||||
return charset;
|
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
|
* Set connection status of server
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user