org.glite.voms.contact

Class VOMSSocket


public class VOMSSocket
extends java.lang.Object

The VOMSSocket class is used to manage the creation of the gsi socket used for communication with the VOMS server.

Method Summary

void
close()
protected void
connect(String host, int port)
SSLContext
getContext()
InputStream
getInputStream()
OutputStream
getOutputStream()
static VOMSSocket
instance(UserCredentials cred, String hostDN)
static VOMSSocket
instance(UserCredentials cred, String hostDN, int proxyType)
boolean
isClosed()
boolean
isConnected()
void
shutdownInput()
void
shutdownOutput()

Method Details

close

public void close()
            throws IOException

connect

protected void connect(String host,
                       int port)
            throws IOException,
                   GeneralSecurityException

getContext

public SSLContext getContext()

getInputStream

public InputStream getInputStream()
            throws IOException

getOutputStream

public OutputStream getOutputStream()
            throws IOException

instance

public static VOMSSocket instance(UserCredentials cred,
                                  String hostDN)

instance

public static VOMSSocket instance(UserCredentials cred,
                                  String hostDN,
                                  int proxyType)

isClosed

public boolean isClosed()

isConnected

public boolean isConnected()

shutdownInput

public void shutdownInput()
            throws IOException

shutdownOutput

public void shutdownOutput()
            throws IOException