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
IOException
GeneralSecurityException
protected void connect(String host, int port) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
public void close() throws IOException
IOException
public SSLContext getContext()
public boolean isClosed()
public boolean isConnected()
public void shutdownInput() throws IOException
IOException
public void shutdownOutput() throws IOException
IOException
public OutputStream getOutputStream() throws IOException
IOException
public InputStream getInputStream() throws IOException
IOException
Copyright © 2012. All Rights Reserved.