org.glite.voms.contact
Class VOMSSocket

java.lang.Object
  extended by org.glite.voms.contact.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.

Author:
Andrea Ceccanti, Vincenzo Ciaschini

Method Summary
 void close()
           
protected  void connect(java.lang.String host, int port)
           
 javax.net.ssl.SSLContext getContext()
           
protected  javax.net.ssl.SSLSocketFactory getFactory()
           
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
static VOMSSocket instance(UserCredentials cred, java.lang.String hostDN)
           
static VOMSSocket instance(UserCredentials cred, java.lang.String hostDN, int proxyType)
           
 boolean isClosed()
           
 boolean isConnected()
           
 void shutdownInput()
           
 void shutdownOutput()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

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

instance

public static VOMSSocket instance(UserCredentials cred,
                                  java.lang.String hostDN)

getFactory

protected javax.net.ssl.SSLSocketFactory getFactory()
                                             throws java.io.IOException,
                                                    java.security.GeneralSecurityException
Throws:
java.io.IOException
java.security.GeneralSecurityException

connect

protected void connect(java.lang.String host,
                       int port)
                throws java.io.IOException,
                       java.security.GeneralSecurityException
Throws:
java.io.IOException
java.security.GeneralSecurityException

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

getContext

public javax.net.ssl.SSLContext getContext()

isClosed

public boolean isClosed()

isConnected

public boolean isConnected()

shutdownInput

public void shutdownInput()
                   throws java.io.IOException
Throws:
java.io.IOException

shutdownOutput

public void shutdownOutput()
                    throws java.io.IOException
Throws:
java.io.IOException

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Throws:
java.io.IOException

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2012. All Rights Reserved.