mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-23 21:17:58 +01:00
Added isSecureConnection method (SMACK-84)
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2089 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
690ba2f345
commit
2962187b75
2 changed files with 13 additions and 0 deletions
|
@ -120,6 +120,10 @@ public class SSLXMPPConnection extends XMPPConnection {
|
||||||
super.init();
|
super.init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isSecureConnection() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An SSL socket factory that will let any certifacte past, even if it's expired or
|
* An SSL socket factory that will let any certifacte past, even if it's expired or
|
||||||
* not singed by a root CA.
|
* not singed by a root CA.
|
||||||
|
|
|
@ -483,6 +483,15 @@ public class XMPPConnection {
|
||||||
return connected;
|
return connected;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns true if the connection is a secured one, such as an SSL connection.
|
||||||
|
*
|
||||||
|
* @return true if a secure connection to the server.
|
||||||
|
*/
|
||||||
|
public boolean isSecureConnection() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if currently authenticated by successfully calling the login method.
|
* Returns true if currently authenticated by successfully calling the login method.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue