aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/xmpp/s2s/Connection.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-06-07 09:39:35 +0300
committerGravatar Vitaly Takmazov2016-06-07 09:39:35 +0300
commit7db1637114eaaf36fb229999b478abc0bb3b1ab5 (patch)
tree995f7e591e60f97697983f2e3832c25ee0a4b718 /src/main/java/com/juick/xmpp/s2s/Connection.java
parente7e9bed758028e1555c9cbbcaaa29fe5504db280 (diff)
refactoring
Diffstat (limited to 'src/main/java/com/juick/xmpp/s2s/Connection.java')
-rw-r--r--src/main/java/com/juick/xmpp/s2s/Connection.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/juick/xmpp/s2s/Connection.java b/src/main/java/com/juick/xmpp/s2s/Connection.java
index c3e983b5..c1bbf22e 100644
--- a/src/main/java/com/juick/xmpp/s2s/Connection.java
+++ b/src/main/java/com/juick/xmpp/s2s/Connection.java
@@ -12,8 +12,8 @@ import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager;
import java.io.*;
import java.net.Socket;
-import java.security.KeyStore;
-import java.security.SecureRandom;
+import java.security.*;
+import java.security.cert.CertificateException;
import java.util.UUID;
import java.util.logging.Logger;
@@ -52,7 +52,7 @@ public class Connection {
};
- public Connection() throws Exception {
+ public Connection() throws XmlPullParserException, KeyStoreException, CertificateException, NoSuchAlgorithmException, IOException, UnrecoverableKeyException, KeyManagementException {
tsCreated = System.currentTimeMillis();
parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, true);
KeyStore ks = KeyStore.getInstance("JKS");