public class GassInputStream extends HTTPInputStream
Modifier and Type | Field and Description |
---|---|
private Authorization |
auth |
private org.ietf.jgss.GSSCredential |
cred |
input, size, socket
Constructor and Description |
---|
GassInputStream(org.ietf.jgss.GSSCredential cred,
Authorization auth,
java.lang.String host,
int port,
java.lang.String file)
Opens Gass input stream in secure mode with specified
user credentials.
|
GassInputStream(java.lang.String host,
int port,
java.lang.String file)
Opens Gass input stream in secure mode with default
user credentials.
|
Modifier and Type | Method and Description |
---|---|
protected java.net.Socket |
openSocket(java.lang.String host,
int port) |
private org.ietf.jgss.GSSCredential cred
private Authorization auth
public GassInputStream(java.lang.String host, int port, java.lang.String file) throws GassException, org.ietf.jgss.GSSException, java.io.IOException
host
- host name of the gass serverport
- port number of the gass serverfile
- file to retrieve from the serverGassException
org.ietf.jgss.GSSException
java.io.IOException
public GassInputStream(org.ietf.jgss.GSSCredential cred, Authorization auth, java.lang.String host, int port, java.lang.String file) throws GassException, org.ietf.jgss.GSSException, java.io.IOException
cred
- user credentials to usehost
- host name of the gass serverport
- port number of the gass serverfile
- file to retrieve from the serverGassException
org.ietf.jgss.GSSException
java.io.IOException
protected java.net.Socket openSocket(java.lang.String host, int port) throws java.io.IOException
openSocket
in class HTTPInputStream
java.io.IOException