public class VOMSSocket extends Object
VOMSSocket class is used to manage the creation of the gsi socket used for communication with
the VOMS server.| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
connect(String host,
int port) |
SSLContext |
getContext() |
protected SSLSocketFactory |
getFactory() |
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() |
public static VOMSSocket instance(UserCredentials cred, String hostDN, int proxyType)
public static VOMSSocket instance(UserCredentials cred, String hostDN)
protected SSLSocketFactory getFactory() throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionprotected void connect(String host, int port) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionpublic void close()
throws IOException
IOExceptionpublic SSLContext getContext()
public boolean isClosed()
public boolean isConnected()
public void shutdownInput()
throws IOException
IOExceptionpublic void shutdownOutput()
throws IOException
IOExceptionpublic OutputStream getOutputStream() throws IOException
IOExceptionpublic InputStream getInputStream() throws IOException
IOExceptionCopyright © 2014. All rights reserved.