|
IP*Works! SSL V9 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectipworksssl.Telnets
public class Telnets
The TelnetS Bean is used to communicate with servers implementing the TELNET protocol.
The TelnetS Bean is the SSL-enabled equivalent of the IP*Works! Telnet Bean. The main difference is the introduction of a set of new configuration settings, properties and events that deal with SSL security. The ipworksssl.Telnets#config and {@link ipworksssl.Telnets#config configuration settings determine which protocols are enabled and at what security level. The {@link ipworksssl.Telnets#getSSLCert SSLCert} property is used to select a client certificate if the server is requesting client authentication. The {@link ipworksssl.Telnets#config configuration setting, together with the {@link ipworksssl.TelnetsSSLServerAuthenticationEvent SSLServerAuthentication} event allow you to check the server identity and other security attributes. Finally, the {@link ipworksssl.TelnetsSSLStatusEvent SSLStatus} event provides information about the SSL handshake.
The TelnetS Bean provides a simple interface to Telnet communications as specified by RFC 854. It allows sending of Telnet command codes to remote Telnet servers and it scans the input data for Telnet commands. Appropriate events are fired for received commands.
The connection interface is very similar to that of IPPort. The same properties and events are used for sending and receiving normal data, and the same property set is used for setting properties of the connection. The TelnetS Bean adds a number of properties like {@link ipworksssl.Telnets#setCommand Command} , {@link ipworksssl.Telnets#setDoOption DoOption} , etc. which allow sending of Telnet commands to the other end. The respective events ( {@link ipworksssl.TelnetsCommandEvent Command} , {@link ipworksssl.TelnetsDoEvent Do} , etc.) are fired when the corresponding Telnet commands are received.
| Field Summary | |
|---|---|
static int |
sslAutomatic
|
static int |
sslExplicit
|
static int |
sslImplicit
|
static int |
sslNone
|
| Constructor Summary | |
|---|---|
Telnets()
Creates an instance of Telnets Bean. |
|
Telnets(java.lang.String runtimeLicense)
Creates an instance of Telnets Bean with specified run-time license. |
|
| Method Summary | |
|---|---|
void |
addTelnetsEventListener(TelnetsEventListener l)
|
java.lang.String |
config(java.lang.String configurationString)
Sets or retrieves a {@link ipworksssl.Telnets#config configuration setting. |
void |
connect(java.lang.String host)
Connect to a remote host. |
void |
disconnect()
Disconnect from the remote host. |
void |
doEvents()
Processes events from the internal message queue. |
int |
getBytesSent()
The number of bytes actually sent after an assignment to DataToSend . |
Firewall |
getFirewall()
A set of properties related to firewall access. |
java.lang.String |
getLocalHost()
The name of the local host or user-assigned IP interface through which connections are initiated or accepted. |
int |
getLocalPort()
The TCP port in the local host where IPPort binds. |
java.lang.String |
getRemoteHost()
The address of the remote host. |
int |
getRemotePort()
The secure Telnet port in the remote host (default is 992). |
Certificate |
getSSLAcceptServerCert()
Instructs the bean to unconditionally accept the server certificate that matches the supplied certificate. |
Certificate |
getSSLCert()
The certificate to be used during SSL negotiation. |
Certificate |
getSSLServerCert()
The server certificate for the last established connection. |
int |
getSSLStartMode()
Determines how the bean starts the SSL negotiation. |
int |
getTimeout()
A timeout for the bean. |
boolean |
isAcceptData()
Enables or disables data reception (the DataIn event). |
boolean |
isConnected()
Triggers a connection or disconnection. |
boolean |
isKeepAlive()
When True, KEEPALIVE packets are enabled (for long connections). |
boolean |
isLinger()
When set to True, connections are terminated gracefully. |
boolean |
isTransparent()
When True, Telnet command processing is disabled. |
void |
removeTelnetsEventListener(TelnetsEventListener l)
|
void |
send(byte[] text)
Send data to the remote host. |
void |
setAcceptData(boolean acceptData)
Enables or disables data reception (the DataIn event). |
void |
setCommand(int command)
A single character Telnet command code to be sent to the server. |
void |
setConnected(boolean connected)
Triggers a connection or disconnection. |
void |
setDataToSend(byte[] dataToSend)
A string of data to be sent to the remote host. |
void |
setDontOption(int dontOption)
A single character Telnet option code to be sent to the server with the Telnet DONT command. |
void |
setDoOption(int doOption)
A single character Telnet option code to be sent to the server with the Telnet DO command. |
void |
setDoSubOption(byte[] doSubOption)
A Telnet SubOption to send to the server with the SubOption command. |
void |
setFirewall(Firewall firewall)
A set of properties related to firewall access. |
void |
setKeepAlive(boolean keepAlive)
When True, KEEPALIVE packets are enabled (for long connections). |
void |
setLinger(boolean linger)
When set to True, connections are terminated gracefully. |
void |
setLocalHost(java.lang.String localHost)
The name of the local host or user-assigned IP interface through which connections are initiated or accepted. |
void |
setLocalPort(int localPort)
The TCP port in the local host where IPPort binds. |
void |
setRemoteHost(java.lang.String remoteHost)
The address of the remote host. |
void |
setRemotePort(int remotePort)
The secure Telnet port in the remote host (default is 992). |
void |
setSSLAcceptServerCert(Certificate SSLAcceptServerCert)
Instructs the bean to unconditionally accept the server certificate that matches the supplied certificate. |
void |
setSSLCert(Certificate SSLCert)
The certificate to be used during SSL negotiation. |
void |
setSSLStartMode(int SSLStartMode)
Determines how the bean starts the SSL negotiation. |
void |
setTimeout(int timeout)
A timeout for the bean. |
void |
setTransparent(boolean transparent)
When True, Telnet command processing is disabled. |
void |
setUrgentData(byte[] urgentData)
A string of data to be sent urgently (out-of-band) to the remote host. |
void |
setWillOption(int willOption)
A single character Telnet option code to be sent to the server with the Telnet WILL command. |
void |
setWontOption(int wontOption)
A single character Telnet option code to be sent to the server with the Telnet WONT command. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int sslAutomatic
public static final int sslImplicit
public static final int sslExplicit
public static final int sslNone
| Constructor Detail |
|---|
public Telnets()
public Telnets(java.lang.String runtimeLicense)
| Method Detail |
|---|
public boolean isAcceptData()
DataIn event).
This property enables or disables data reception (the DataIn event). Setting this property to False, temporarily disables data reception
(and the DataIn event). Setting this property to True, re-enables
data reception.
public void setAcceptData(boolean acceptData)
throws IPWorksSSLException
DataIn event).
This property enables or disables data reception (the DataIn event). Setting this property to False, temporarily disables data reception
(and the DataIn event). Setting this property to True, re-enables
data reception.
IPWorksSSLExceptionpublic int getBytesSent()
DataToSend .
The BytesSent property shows how many bytes were sent after the last
assignment to DataToSend or UrgentData . Please check the DataToSend property for more information.
public void setCommand(int command)
throws IPWorksSSLException
Codes for Telnet commands and their meanings are defined in the Telnet RFCs. Here are some examples:
IPWorksSSLExceptionpublic boolean isConnected()
Setting the Connected property to True makes the bean attempt
to connect to the host identified by the RemoteHost property.
If successful, after the connection is achieved, the value of the
property changes to True and the Connected event is fired.
Setting Connected to False closes the connection. How and when the
connection is closed is controlled by the Linger property.
public void setConnected(boolean connected)
throws IPWorksSSLException
Setting the Connected property to True makes the bean attempt
to connect to the host identified by the RemoteHost property.
If successful, after the connection is achieved, the value of the
property changes to True and the Connected event is fired.
Setting Connected to False closes the connection. How and when the
connection is closed is controlled by the Linger property.
IPWorksSSLException
public void setDataToSend(byte[] dataToSend)
throws IPWorksSSLException
Assigning a string to the DataToSend property makes the bean send
the string to the remote host. The Send method provides similar functionality.
If you are sending data to the remote host faster than it can
process it, or faster than the network's bandwidth allows, the outgoing
queue might fill up. When this happens, DataToSend fails with exception 10035: "[10035] Operation would block" (WSAEWOULDBLOCK).
You can check this error, and then try to send the data again.
The BytesSent property shows how many bytes were sent
(if any). If 0 bytes were sent, then you
can wait for the ReadyToSend event before attempting to send data
again. (However, please note that ReadyToSend is not fired when part
of the data is successfully sent).
IPWorksSSLException
public void setDontOption(int dontOption)
throws IPWorksSSLException
For a list of option codes and their descriptions, please look at the Telnet RFCs. The following are a few examples:
IPWorksSSLException
public void setDoOption(int doOption)
throws IPWorksSSLException
For a list of option codes and their descriptions, please look at the Telnet RFCs. The following are a few examples:
IPWorksSSLException
public void setDoSubOption(byte[] doSubOption)
throws IPWorksSSLException
For a list of valid Telnet suboptions and their descriptions please look at the Telnet RFCs.
You don't need to specify the suboption start and suboption end codes. Those are appended automatically by the bean. For example, to send a terminal type suboption to request setting the terminal type to 'vt100', you must send ASCII 24, followed by ASCII 0, followed by "vt100" (without the quotes).
IPWorksSSLExceptionpublic Firewall getFirewall()
This is a Firewall type property which
contains fields describing the firewall
through which the bean will attempt to connect.
public void setFirewall(Firewall firewall)
throws IPWorksSSLException
This is a Firewall type property which
contains fields describing the firewall
through which the bean will attempt to connect.
IPWorksSSLExceptionpublic boolean isKeepAlive()
The KeepAlive enables the SO_KEEPALIVE option on the socket.
This option prevents long connections from timing out in case
of inactivity.
Please note that system TCP/IP stack implementations are not required to support SO_KEEPALIVE.
public void setKeepAlive(boolean keepAlive)
throws IPWorksSSLException
The KeepAlive enables the SO_KEEPALIVE option on the socket.
This option prevents long connections from timing out in case
of inactivity.
Please note that system TCP/IP stack implementations are not required to support SO_KEEPALIVE.
IPWorksSSLExceptionpublic boolean isLinger()
This property controls how a connection is closed. The default is True.
In the case that Linger is True (default), there are two scenarios for determining how long the connection will linger. The first, if {@link ipworksssl.Telnets#config is 0 (default), the system will attempt to send pending data for a connection until the default IP protocol timeout expires.
In the second scenario, {@link ipworksssl.Telnets#config is a positive value, the system will attempt to send pending data until the specified {@link ipworksssl.Telnets#config is reached. If this attempt fails, then the system will reset the connection.
The default behavior (which is also the default mode for stream sockets) might result in a long delay in closing the connection. Although the bean returns control immediately, the system could hold system resources until all pending data is sent (even after your application closes).
Setting this property to False forces an immediate disconnection. If you know that the other side has received all the data you sent (by a client acknowledgment, for example), setting this property to False might be the appropriate course of action.
public void setLinger(boolean linger)
throws IPWorksSSLException
This property controls how a connection is closed. The default is True.
In the case that Linger is True (default), there are two scenarios for determining how long the connection will linger. The first, if {@link ipworksssl.Telnets#config is 0 (default), the system will attempt to send pending data for a connection until the default IP protocol timeout expires.
In the second scenario, {@link ipworksssl.Telnets#config is a positive value, the system will attempt to send pending data until the specified {@link ipworksssl.Telnets#config is reached. If this attempt fails, then the system will reset the connection.
The default behavior (which is also the default mode for stream sockets) might result in a long delay in closing the connection. Although the bean returns control immediately, the system could hold system resources until all pending data is sent (even after your application closes).
Setting this property to False forces an immediate disconnection. If you know that the other side has received all the data you sent (by a client acknowledgment, for example), setting this property to False might be the appropriate course of action.
IPWorksSSLExceptionpublic java.lang.String getLocalHost()
The LocalHost property contains the name of the local host
as obtained by the gethostname() system call, or if the
user has assigned an IP address, the value of that address.
In multi-homed hosts (machines with more than one IP interface) setting LocalHost to the value of an interface will make the bean initiate connections (or accept in the case of server beans) only through that interface.
If the bean is connected, the LocalHost property shows
the IP address of the interface through which the connection
is made in internet dotted format (aaa.bbb.ccc.ddd). In most
cases, this is the address of the local host, except for multi-homed
hosts (machines with more than one IP interface).
NOTE: LocalHost is not persistent. You must always set it in
code, and never in the property window.
public void setLocalHost(java.lang.String localHost)
throws IPWorksSSLException
The LocalHost property contains the name of the local host
as obtained by the gethostname() system call, or if the
user has assigned an IP address, the value of that address.
In multi-homed hosts (machines with more than one IP interface) setting LocalHost to the value of an interface will make the bean initiate connections (or accept in the case of server beans) only through that interface.
If the bean is connected, the LocalHost property shows
the IP address of the interface through which the connection
is made in internet dotted format (aaa.bbb.ccc.ddd). In most
cases, this is the address of the local host, except for multi-homed
hosts (machines with more than one IP interface).
NOTE: LocalHost is not persistent. You must always set it in
code, and never in the property window.
IPWorksSSLExceptionpublic int getLocalPort()
The LocalPort property must be set before a connection is
attempted. It instructs the bean to bind to a specific
port (or communication endpoint) in the local machine.
Setting it to 0 (default) enables the TCP/IP stack to choose a port
at random. The chosen port will be shown by the LocalPort property after the connection is established.
LocalPort cannot be changed once a connection is made.
Any attempt to set the LocalPort property when a connection
is active will generate an error.
The LocalPort property is useful when trying to connect
to services that require a trusted port in the client side.
public void setLocalPort(int localPort)
throws IPWorksSSLException
The LocalPort property must be set before a connection is
attempted. It instructs the bean to bind to a specific
port (or communication endpoint) in the local machine.
Setting it to 0 (default) enables the TCP/IP stack to choose a port
at random. The chosen port will be shown by the LocalPort property after the connection is established.
LocalPort cannot be changed once a connection is made.
Any attempt to set the LocalPort property when a connection
is active will generate an error.
The LocalPort property is useful when trying to connect
to services that require a trusted port in the client side.
IPWorksSSLExceptionpublic java.lang.String getRemoteHost()
This property specifies the IP address (IP number in dotted internet format) or Domain Name of the remote host. It is set before a connection is attempted and cannot be changed once a connection is established.
If this property is set to a Domain Name, a DNS request is initiated, and upon successful termination of the request, this property is set to the corresponding address. If the search is not successful, an error is returned.
If the bean is configured to use a SOCKS firewall, the value assigned to this property may be preceded with an "*". If this is the case, the host name is passed to the firewall unresolved and the firewall performs the DNS resolution.
Example (Connecting)
IPPortControl.RemoteHost = "MyHostNameOrIP"
IPPortControl.RemotePort = 777
IPPortControl.Connected = true
public void setRemoteHost(java.lang.String remoteHost)
throws IPWorksSSLException
This property specifies the IP address (IP number in dotted internet format) or Domain Name of the remote host. It is set before a connection is attempted and cannot be changed once a connection is established.
If this property is set to a Domain Name, a DNS request is initiated, and upon successful termination of the request, this property is set to the corresponding address. If the search is not successful, an error is returned.
If the bean is configured to use a SOCKS firewall, the value assigned to this property may be preceded with an "*". If this is the case, the host name is passed to the firewall unresolved and the firewall performs the DNS resolution.
Example (Connecting)
IPPortControl.RemoteHost = "MyHostNameOrIP"
IPPortControl.RemotePort = 777
IPPortControl.Connected = true
IPWorksSSLExceptionpublic int getRemotePort()
A valid port number (a value between 1 and 65535) is required for the connection to take place. The property must be set before a connection is attempted and cannot be changed once a connection is established. Any attempt to change this property while connected will fail with an error.
public void setRemotePort(int remotePort)
throws IPWorksSSLException
A valid port number (a value between 1 and 65535) is required for the connection to take place. The property must be set before a connection is attempted and cannot be changed once a connection is established. Any attempt to change this property while connected will fail with an error.
IPWorksSSLExceptionpublic Certificate getSSLAcceptServerCert()
If it finds any issues with the certificate presented by the server, the bean will normally terminate the connection with an error.
You may override this behavior by supplying a value for SSLAcceptServerCert .
If the certificate supplied in SSLAcceptServerCert is the same as the
certificate presented by the server, then the server
certificate is accepted unconditionally, and the connection will continue
normally.
Please note that this functionality is provided only for cases where you otherwise know that you are communicating with the right server. If used improperly, this property may create a security breach. Use it at your own risk.
public void setSSLAcceptServerCert(Certificate SSLAcceptServerCert)
throws IPWorksSSLException
If it finds any issues with the certificate presented by the server, the bean will normally terminate the connection with an error.
You may override this behavior by supplying a value for SSLAcceptServerCert .
If the certificate supplied in SSLAcceptServerCert is the same as the
certificate presented by the server, then the server
certificate is accepted unconditionally, and the connection will continue
normally.
Please note that this functionality is provided only for cases where you otherwise know that you are communicating with the right server. If used improperly, this property may create a security breach. Use it at your own risk.
IPWorksSSLExceptionpublic Certificate getSSLCert()
The digital certificate that the bean will use
during SSL negotiation. Set this property to a valid
certificate before starting SSL negotiation. To set
a certificate, you may set the Encoded field to
the encoded certificate. To select a certificate, use
the store and subject fields.
public void setSSLCert(Certificate SSLCert)
throws IPWorksSSLException
The digital certificate that the bean will use
during SSL negotiation. Set this property to a valid
certificate before starting SSL negotiation. To set
a certificate, you may set the Encoded field to
the encoded certificate. To select a certificate, use
the store and subject fields.
IPWorksSSLExceptionpublic Certificate getSSLServerCert()
SSLServerCert contains the server certificate for the
last established connection.
SSLServerCert is reset every time a new connection is attempted.
public int getSSLStartMode()
The SSLStartMode property may have one of the following values:
SSLStartMode is set to sslExplicit . In all other cases, SSL negotiation will be implicit
( sslImplicit ).
public void setSSLStartMode(int SSLStartMode)
throws IPWorksSSLException
The SSLStartMode property may have one of the following values:
SSLStartMode is set to sslExplicit . In all other cases, SSL negotiation will be implicit
( sslImplicit ).
IPWorksSSLExceptionpublic int getTimeout()
If the Timeout property is set to 0, all operations return immediately, potentially failing with an 'WOULDBLOCK' error if data can't be sent or received immediately.
If Timeout is set to a positive value, the bean will automatically retry each operation that would otherwise result in a 'WOULDBLOCK' error for a maximum of Timeout seconds.
The bean will use DoEvents to enter an efficient wait loop
during any potential waiting period, making sure that all system events
are processed immediately as they arrive. This ensures that the host
application does not "freeze" and remains responsive.
If Timeout expires, and the operation is not yet complete,
the bean throws an exception.
Please note that by default, all timeouts are inactivity timeouts ,
i.e. the timeout period is extended by Timeout seconds when
any amount of data is successfully sent or received.
Optionally, the behavior of the bean may be changed to absolute timeouts , i.e. the bean will wait for a maximum
of Timeout seconds since the beginning of the operation, without
extending the timeout period during communications.
This behavior is controlled by the ipworksssl.Telnets#config configuration setting.
The default value for the {@link ipworksssl.Telnets#getTimeout Timeout} property is 0 (asynchronous operation).
public void setTimeout(int timeout)
throws IPWorksSSLException
If the Timeout property is set to 0, all operations return immediately, potentially failing with an 'WOULDBLOCK' error if data can't be sent or received immediately.
If Timeout is set to a positive value, the bean will automatically retry each operation that would otherwise result in a 'WOULDBLOCK' error for a maximum of Timeout seconds.
The bean will use DoEvents to enter an efficient wait loop
during any potential waiting period, making sure that all system events
are processed immediately as they arrive. This ensures that the host
application does not "freeze" and remains responsive.
If Timeout expires, and the operation is not yet complete,
the bean throws an exception.
Please note that by default, all timeouts are inactivity timeouts ,
i.e. the timeout period is extended by Timeout seconds when
any amount of data is successfully sent or received.
Optionally, the behavior of the bean may be changed to absolute timeouts , i.e. the bean will wait for a maximum
of Timeout seconds since the beginning of the operation, without
extending the timeout period during communications.
This behavior is controlled by the ipworksssl.Telnets#config configuration setting.
The default value for the {@link ipworksssl.Telnets#getTimeout Timeout} property is 0 (asynchronous operation).
IPWorksSSLExceptionpublic boolean isTransparent()
The Transparent property allows you to enable or disable Telnet command
processing. When command processing is disabled, any data received
is provided with no modifications.
public void setTransparent(boolean transparent)
throws IPWorksSSLException
The Transparent property allows you to enable or disable Telnet command
processing. When command processing is disabled, any data received
is provided with no modifications.
IPWorksSSLException
public void setUrgentData(byte[] urgentData)
throws IPWorksSSLException
The UrgentData property behaves exactly like the DataToSend property
except that the data is sent Out Of Band (urgent). This means that
the data assigned to UrgentData will bypass the normal TCP queuing
mechanism. Use this property with caution.
IPWorksSSLException
public void setWillOption(int willOption)
throws IPWorksSSLException
For a list of option codes and their descriptions, please look at the Telnet RFCs. The following are a few examples:
IPWorksSSLException
public void setWontOption(int wontOption)
throws IPWorksSSLException
For a list of option codes and their descriptions, please look at the Telnet RFCs. The following are a few examples:
IPWorksSSLException
public java.lang.String config(java.lang.String configurationString)
throws IPWorksSSLException
{@link ipworksssl.Telnets#config Config} is a generic method available in every bean. It is used to set and retrieve {@link ipworksssl.Telnets#config configuration settingsfor the bean.
These settings are similar in functionality to properties, but they are rarely used. In order to avoid "polluting" the property namespace of the bean, access to these internal properties is provided through the {@link ipworksssl.Telnets#config Config} method.
To set a configuration setting named PROPERTY , you must call Config("PROPERTY=VALUE") , where VALUE is the value of the setting expressed as a string. For boolean values, use the strings "True", "False", "0", "1", "Yes", or "No" (case does not matter).
To read (query) the value of a {@link ipworksssl.Telnets#config configuration setting, you must call Config("PROPERTY") . The value will be returned as a string.
The bean accepts one or more of the following configuration settings . Configuration settings are similar in functionality to properties, but they are rarely used. In order to avoid "polluting" the property namespace of the bean, access to these internal properties is provided through the {@link ipworksssl.Telnets#config Config} method.
NOTE: This is the same as Host . This setting is provided for use by beans that do not directly expose Firewall properties.
{@link ipworksssl.Telnets#getRemotePort RemotePort} is the port in which the firewall will listen to. If set to 0, the firewall will select a random port. The binding (address and port) is provided through the {@link ipworksssl.TelnetsConnectionStatusEvent ConnectionStatus} event.
The connection to the firewall is made by calling the {@link ipworksssl.Telnets#connect Connect} method.
In the second scenario, {@link ipworksssl.Telnets#config is a positive value, the system will attempt to send pending data until the specified {@link ipworksssl.Telnets#config is reached. If this attempt fails, then the system will reset the connection.
The default behavior (which is also the default mode for stream sockets) might result in a long delay in closing the connection. Although the bean returns control immediately, the system could hold system resources until all pending data is sent (even after your application closes).
Setting this property to False forces an immediate disconnection. If you know that the other side has received all the data you sent (by a client acknowledgment, for example), setting this property to False might be the appropriate course of action.
If the bean is connected, the {@link ipworksssl.Telnets#getLocalHost LocalHost} setting shows the IP address of the interface through which the connection is made in internet dotted format (aaa.bbb.ccc.ddd). In most cases, this is the address of the local host, except for multi-homed hosts (machines with more than one IP interface).
{@link ipworksssl.Telnets#getLocalPort LocalPort} cannot be changed once a connection is made. Any attempt to set this when a connection is active will generate an error.
This; setting is useful when trying to connect to services that require a trusted port in the client side. An example is the remote shell (rsh) service in UNIX systems.
If no {@link ipworksssl.Telnets#getEOL EOL} is found, and {@link ipworksssl.Telnets#config bytes are accumulated in the buffer, the {@link ipworksssl.TelnetsDataInEvent DataIn} event is fired with the EOL parameter set to False, and the buffer is reset.
The minimum value for {@link ipworksssl.Telnets#config is 256 bytes. The default value is 2048 bytes. The maximum value is 65536 bytes.
Use this setting with caution. Requesting a lower cipher strength than necessary could potentially cause serious security vulnerabilities in your application.
When the provider is OpenSSL, SSLCipherStrength is currently not supported. This functionality is instead made available through the {@link ipworksssl.Telnets#config config setting.
When the provider is OpenSSL, SSLCipherStrength is currently not supported. This functionality is instead made available through the {@link ipworksssl.Telnets#config config setting.
TLS 1.1 and TLS1.2 support are only available starting with Windows 7.
The special value "*" (default) picks the default SSL provider defined in the system.
Note: On Windows systems, the default SSL Provider is "Microsoft Unified Security Protocol Provider" and cannot be changed.
The special value "*" means that the component will pick all of the supported cipher suites. If SSLEnabledCipherSuites is set to any other value, only the specified cipher suites will be considered.
Multiple cipher suites are separated by semicolons.
Example values:
obj.config("SSLEnabledCipherSuites=*");
obj.config("SSLEnabledCipherSuites=SSL_RSA_WITH_RC4_128_SHA");
obj.config("SSLEnabledCipherSuites=SSL_RSA_WITH_RC4_128_SHA; SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA"); Possible values include:
SSLEnabledCipherSuites is used together with SSLCipherStrength .
Note: This configuration setting is available only in .NET and Java.
obj.Config("SSLEnabledProtocols=3072"); // TLS1.2 (supports SHA_256)
obj.Config("SSLAlgorithmList=CALG_SHA_256;CALG_MD5"); Possible values include:
This option is only valid in Windows.
IPWorksSSLException
public void connect(java.lang.String host)
throws IPWorksSSLException
Calling this method is equivalent to setting the RemoteHost property
to Host and then setting the Connected property to True.
IPWorksSSLException
public void disconnect()
throws IPWorksSSLException
Calling this method is equivalent to setting the Connected property
to False.
IPWorksSSLException
public void doEvents()
throws IPWorksSSLException
When DoEvents is called, the bean processes any
available events. If no events are available, it waits for a
preset period of time, and then returns.
IPWorksSSLException
public void send(byte[] text)
throws IPWorksSSLException
Calling this method is equivalent to setting the DataToSend property
to Text .
IPWorksSSLException
public void addTelnetsEventListener(TelnetsEventListener l)
throws java.util.TooManyListenersException
java.util.TooManyListenersExceptionpublic void removeTelnetsEventListener(TelnetsEventListener l)
|
IP*Works! SSL V9 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||