1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-24 03:27:59 +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:
Matt Tucker 2003-09-18 20:39:14 +00:00 committed by mtucker
parent 690ba2f345
commit 2962187b75
2 changed files with 13 additions and 0 deletions

View file

@ -120,6 +120,10 @@ public class SSLXMPPConnection extends XMPPConnection {
super.init();
}
public boolean isSecureConnection() {
return true;
}
/**
* An SSL socket factory that will let any certifacte past, even if it's expired or
* not singed by a root CA.

View file

@ -483,6 +483,15 @@ public class XMPPConnection {
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.
*