| Modifier and Type | Class and Description |
|---|---|
static class |
OpcTcpSettings.Flag |
| Constructor and Description |
|---|
OpcTcpSettings() |
| Modifier and Type | Method and Description |
|---|---|
OpcTcpSettings |
clone() |
CertificateValidator |
getCertificateValidator()
Getter for the field
certificateValidator. |
Cert |
getClientCertificate()
Getter for the field
clientCertificate. |
int |
getConnectTimeout()
Timeout for the initial socket connect operation, in milliseconds.
|
EnumSet<OpcTcpSettings.Flag> |
getFlags()
Getter for the field
flags. |
int |
getHandshakeTimeout()
Timeout for the initial handshake (Hello/Acknowledge exchange) after a socket connection is
opened.
|
int |
getMaxConnections() |
PrivKey |
getPrivKey()
Getter for the field
privKey. |
int |
getReverseHelloAcceptTimeout()
Get the timeout used to listen on reverse connections, in milliseconds.
|
TcpConnection.SocketFactory |
getSocketFactory()
The
TcpConnection.SocketFactory to be used in the connection (if null
TcpConnection.getSocketFactory() is used instead). |
void |
readFrom(OpcTcpSettings tcs)
readFrom.
|
void |
setCertificateValidator(CertificateValidator certificateValidator)
Setter for the field
certificateValidator. |
void |
setClientCertificate(Cert clientCertificate)
Setter for the field
clientCertificate. |
void |
setClientCertificate(X509Certificate clientCertificate)
Setter for the field
clientCertificate. |
void |
setConnectTimeout(int connectTimeout)
See
getConnectTimeout(). |
void |
setFlags(EnumSet<OpcTcpSettings.Flag> flags)
Setter for the field
flags. |
void |
setHandshakeTimeout(int handshakeTimeout)
|
void |
setMaxConnections(int maxConnections) |
void |
setPrivKey(PrivKey privKey)
Setter for the field
privKey. |
void |
setReverseHelloAcceptTimeout(int reverseHelloListenTimeout)
|
void |
setSocketFactory(TcpConnection.SocketFactory socketFactory)
The
TcpConnection.SocketFactory to be used in the connection (if null
TcpConnection.getSocketFactory() is used instead). |
public OpcTcpSettings clone()
public CertificateValidator getCertificateValidator()
Getter for the field certificateValidator.
CertificateValidator object.public Cert getClientCertificate()
Getter for the field clientCertificate.
Cert object.public int getConnectTimeout()
Socket.connect(java.net.SocketAddress, int). However in practice the maximum timeout
is determined by the Operating System. If this is -1, then
TcpConnection.getDefaultHandshakeTimeout() is used.public EnumSet<OpcTcpSettings.Flag> getFlags()
Getter for the field flags.
EnumSet object.public int getHandshakeTimeout()
public int getMaxConnections()
public int getReverseHelloAcceptTimeout()
TcpConnection.getDefaultReverseHelloAcceptTimeout(). 0 is infinite.public TcpConnection.SocketFactory getSocketFactory()
TcpConnection.SocketFactory to be used in the connection (if null
TcpConnection.getSocketFactory() is used instead).public void readFrom(OpcTcpSettings tcs)
readFrom.
tcs - a OpcTcpSettings object.public void setCertificateValidator(CertificateValidator certificateValidator)
Setter for the field certificateValidator.
certificateValidator - a
CertificateValidator object.public void setClientCertificate(Cert clientCertificate)
Setter for the field clientCertificate.
clientCertificate - a Cert object.public void setClientCertificate(X509Certificate clientCertificate) throws CertificateEncodingException
Setter for the field clientCertificate.
clientCertificate - a X509Certificate object.CertificateEncodingException - if any.public void setConnectTimeout(int connectTimeout)
getConnectTimeout().public void setFlags(EnumSet<OpcTcpSettings.Flag> flags)
Setter for the field flags.
flags - a EnumSet object.public void setHandshakeTimeout(int handshakeTimeout)
public void setMaxConnections(int maxConnections)
public void setPrivKey(PrivKey privKey)
Setter for the field privKey.
privKey - a PrivKey object.public void setReverseHelloAcceptTimeout(int reverseHelloListenTimeout)
public void setSocketFactory(TcpConnection.SocketFactory socketFactory)
TcpConnection.SocketFactory to be used in the connection (if null
TcpConnection.getSocketFactory() is used instead).Copyright © 2026. All rights reserved.