public class TelnetSsl extends Telnet
Telnet.ByteDecoder, Telnet.DefaultDecoder, Telnet.EUCKoreanDecoder, Telnet.UTF8Decoder
Constructor and Description |
---|
TelnetSsl(java.lang.String hostname)
Constructs a new TelnetSsl instance
|
TelnetSsl(java.lang.String hostname,
int port)
Constructs a new TelnetSsl instance
|
Modifier and Type | Method and Description |
---|---|
void |
clearProxySettings()
Clears proxy server values.
|
void |
connect()
Establishes connection to telnet server using SSL/TLS.
|
void |
disconnect()
Disconnects from telnet server.
|
void |
setClientCertificates(java.lang.String filename,
java.lang.String password)
Sets optional client certificate to be used during authentication.
|
void |
setClientCertificates(java.lang.String filename,
java.lang.String password,
java.lang.String storetype)
Sets optional client certificate to be used during authentication.
|
void |
setProxyAuthentication(java.lang.String proxyUsername,
java.lang.String proxyPassword)
Sets the username and password to use when for authentication with
proxy server.
|
void |
setProxyHost(java.lang.String proxyHostname,
int proxyPort)
Sets the proxy hostname and port for this connection.
|
void |
setProxyType(java.lang.String proxyType)
Sets the proxy type will be used for this connection.
|
void |
setServerCertificates(java.lang.String filename,
java.lang.String password)
Sets optional server certificate to be used during authentication.
|
void |
setServerCertificates(java.lang.String filename,
java.lang.String password,
java.lang.String storetype)
Sets optional server certificate to be used during authentication.
|
addTelnetListener, getCharacterSet, getCommandName, getDebug, getDebugStream, getHostname, getInputStream, getOutputStream, getPort, getReader, getReadingTimeout, getTimeout, getWriter, removeTelnetListener, sendCommand, sendCommand, sendDontOption, sendDoOption, sendOptionSubnegotiation, sendWillOption, sendWontOption, setCharacterSet, setDebug, setDebugStream, setHostname, setPort, setReadingTimeout, setTimeout
public TelnetSsl(java.lang.String hostname)
hostname
- the telnet server hostnamepublic TelnetSsl(java.lang.String hostname, int port)
hostname
- the server hostnameport
- the server portpublic void connect() throws TelnetException
connect
in class Telnet
TelnetException
- if an I/O or telnet related error occurspublic void disconnect()
disconnect
in class Telnet
public void setServerCertificates(java.lang.String filename, java.lang.String password)
keytool
utility provided in the Sun JDK.
Example:
keytool.exe -import -file x509.cer -keystore your_store_nameThe example above imports the certificate x509.cer into a keystore named your_store_name
filename
- the keystore file containing the server certificatepassword
- the keystore passwordpublic void setServerCertificates(java.lang.String filename, java.lang.String password, java.lang.String storetype)
keytool
utility provided in the Sun JDK.
Example:
keytool.exe -import -file x509.cer -keystore your_store_nameThe example above imports the certificate x509.cer into a keystore named your_store_name
filename
- the keystore file containing the server certificatepassword
- the keystore passwordstoretype
- the keystore type valid values include jks and pkcs12public void setClientCertificates(java.lang.String filename, java.lang.String password)
keytool
utility provided in the Sun JDK.
Example:
keytool.exe -import -file x509.cer -keystore your_store_nameThe example above imports the certificate x509.cer into a keystore named your_store_name
filename
- the keystore file containing the client certificatepassword
- the keystore passwordpublic void setClientCertificates(java.lang.String filename, java.lang.String password, java.lang.String storetype)
keytool
utility provided in the Sun JDK.
Example:
keytool.exe -import -file x509.cer -keystore your_store_nameThe example above imports the certificate x509.cer into a keystore named your_store_name
filename
- the keystore file containing the client certificatepassword
- the keystore passwordstoretype
- the keystore type valid values include jks and pkcs12public void setProxyAuthentication(java.lang.String proxyUsername, java.lang.String proxyPassword)
#clearProxySettings
method.setProxyAuthentication
in class Telnet
proxyUsername
- the proxy usernameproxyPassword
- the proxy passwordclearProxySettings()
public void setProxyHost(java.lang.String proxyHostname, int proxyPort)
#clearProxySettings
method.setProxyHost
in class Telnet
proxyHostname
- the hostname or ip address of the proxy serverproxyPort
- the port of the proxy serverclearProxySettings()
public void setProxyType(java.lang.String proxyType)
setProxyType
in class Telnet
proxyType
- The proxy type. Valid values: HTTP, SOCKS5public void clearProxySettings()
clearProxySettings
in class Telnet
Copyright © JSCAPE LLC. 1999-2021. All Rights Reserved