// Decompiled by Jad v1.5.7f. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) braces deadcode fieldsfirst 
// Source File Name:   SSLUtils.java
// Class Version:      45.3

package org.apache.soap.util.net;

import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;
import javax.net.SocketFactory;
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;

// flag ACC_SUPER is set
public class SSLUtils
{
    // Constants:          36
    // Interfaces:         0
    // Fields:             0
    // Methods:            2
    // Class Attributes:   1


    // Decompiling method: <init>  Signature: ()V
    // Max stack: 1, #locals: 1, #params: 1
    // Code length: 5 bytes, Code offset: 514
    // Line Number Table found: 1 entries
    // Parameter  0 added: Name this Type Lorg/apache/soap/util/net/SSLUtils; At 0 5 Range 0 4 Init 0 fixed
    // RetValue   1 added: Name <returnValue> Type V At 0 5 Range 0 4 Init 0 fixed
    public SSLUtils()
    {
        super();
        return;
    }

    // Decompiling method: buildSSLSocket  Signature: (Ljava/lang/String;I)Ljava/net/Socket;
    // Max stack: 3, #locals: 4, #params: 2
    // Code length: 23 bytes, Code offset: 557
    // Line Number Table found: 6 entries
    // Parameter  0 added: Name s Type Ljava/lang/String; At 0 23 Range 0 22 Init 0
    // Parameter  1 added: Name i Type I At 0 23 Range 0 22 Init 0
    // RetValue   4 added: Name <returnValue> Type Ljava/net/Socket; At 0 23 Range 0 22 Init 0 fixed
    // LocalVar   2 added: Name sslsocketfactory Type Ljavax/net/ssl/SSLSocketFactory; At 6 2 Range 6 7 Init 6
    // LocalVar   3 added: Name sslsocket Type Ljavax/net/ssl/SSLSocket; At 16 6 Range 16 21 Init 16
    public static Socket buildSSLSocket(String s, int i)
        throws IOException, UnknownHostException
    {
        SSLSocketFactory sslsocketfactory = (SSLSocketFactory)SSLSocketFactory.getDefault();
        SSLSocket sslsocket = (SSLSocket)sslsocketfactory.createSocket(s, i);
        sslsocket.startHandshake();
        return sslsocket;
    }
}
