1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-22 18:48:00 +01:00

Improve proceedTLSReceived() documentation

This commit is contained in:
Florian Schmaus 2014-04-22 22:45:20 +02:00
parent 3de8af6865
commit e2bca403e0

View file

@ -636,7 +636,7 @@ public class XMPPTCPConnection extends XMPPConnection {
/**
* The server has indicated that TLS negotiation can start. We now need to secure the
* existing plain connection and perform a handshake. This method won't return until the
* connection has finished the handshake or an error occured while securing the connection.
* connection has finished the handshake or an error occurred while securing the connection.
*
* @throws Exception if an exception occurs.
*/
@ -702,7 +702,7 @@ public class XMPPTCPConnection extends XMPPConnection {
}
}
// Verify certificate presented by the server
// If the user didn't specify a SSLContext, use the default one
if (context == null) {
context = SSLContext.getInstance("TLS");
context.init(kms, null, new java.security.SecureRandom());