org.glite.voms.contact
Class VOMSSocket
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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