Code example for SSLSocket

Methods: close

         * back to the underlying connection. RI close the ssl socket but 
         * dosen't reverts to former socket when invoke this method. We follow 
         * RI here. 
        if (negotiatedSslSocket != null) {
    public SSLSession negotiate() throws IOException {
        return negotiate(null); 
    public SSLSession negotiate(SSLSocketFactory factory) throws IOException {
        if (socket == null) {
            // must set socket before negotiate 
            return null; 
Stop searching for code, let great code find you!  Add Codota to your java IDE