diff options
author | Vitaly Takmazov | 2016-06-07 09:39:35 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-06-07 09:39:35 +0300 |
commit | 7db1637114eaaf36fb229999b478abc0bb3b1ab5 (patch) | |
tree | 995f7e591e60f97697983f2e3832c25ee0a4b718 /src/main/java/com/juick/xmpp/s2s/Connection.java | |
parent | e7e9bed758028e1555c9cbbcaaa29fe5504db280 (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.java | 6 |
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"); |