public class OpcTcpServerSecureChannel extends AbstractServerSecureChannel
OpcTcpServerSecureChannel class.
| Modifier and Type | Field and Description |
|---|---|
AtomicInteger |
recvSequenceNumber
Sequence number counter of inbound messages.
|
SecurityConfiguration |
securityConfiguration
Security profile for this security channel.
|
AtomicInteger |
sendSequenceNumber
Sequence number counter of outbound messages.
|
activeToken, tokens| Constructor and Description |
|---|
OpcTcpServerSecureChannel(OpcTcpServerConnection connection,
int secureChannelId)
Constructor for OpcTcpServerSecureChannel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Close and dispose.
|
OpcTcpServerConnection |
getConnection()
Get current socket connection if applicable for the binding type.
|
String |
getConnectURL()
Return the URL of the connection.
|
Endpoint |
getEndpoint()
Get endpoint
|
KeyPair |
getLocalCertificate()
getLocalCertificate.
|
protected Collection<PendingRequest> |
getPendingRequests2()
getPendingRequests2.
|
void |
getPendingServiceRequests(Collection<EndpointServiceRequest<?,?>> result)
Get all unanswered service requests.
|
Cert |
getRemoteCertificate()
getRemoteCertificate.
|
Server |
getServer()
getServer.
|
protected void |
handleCloseSecureChannelRequest(InputMessage mb,
CloseSecureChannelRequest req)
handleCloseSecureChannelRequest.
|
protected void |
handleOpenChannel(InputMessage mb,
OpenSecureChannelRequest req)
handleOpenChannel.
|
protected void |
handleRenewSecureChannelRequest(InputMessage mb,
OpenSecureChannelRequest req)
handleRenewSecureChannelRequest.
|
protected void |
handleSecureMessage(InputMessage mb,
IEncodeable msg)
handleSecureMessage.
|
boolean |
needsCertificate() |
protected void |
onStateTransition(CloseableObjectState oldState,
CloseableObjectState newState)
Override this.
|
close, closeAsync, getActiveSecurityToken, getLatestNonExpiredToken, getMessageSecurityMode, getRemoteAddress, getSecureChannelId, getSecurityPolicy, getSecurityToken, isOpen, onListenerException, setActiveSecurityToken, setError, toStringaddStateListener, addStateNotifiable, attemptSetState, clearError, getError, getState, hasError, isStateTransitionAllowed, removeStateListener, removeStateNotifiable, setState, setState, throwIfError, waitForState, waitForState, waitForStateUninterruptiblypublic SecurityConfiguration securityConfiguration
public final AtomicInteger sendSequenceNumber
public final AtomicInteger recvSequenceNumber
public OpcTcpServerSecureChannel(OpcTcpServerConnection connection, int secureChannelId)
Constructor for OpcTcpServerSecureChannel.
connection - a OpcTcpServerConnection
object.secureChannelId - a int.public void dispose()
ServerSecureChannelpublic OpcTcpServerConnection getConnection()
ServerSecureChannelpublic String getConnectURL()
ServerSecureChannelpublic Endpoint getEndpoint()
ServerSecureChannelpublic KeyPair getLocalCertificate()
getLocalCertificate.
KeyPair object.public void getPendingServiceRequests(Collection<EndpointServiceRequest<?,?>> result)
ServerSecureChannelresult - container to fill with unanswered service requestspublic Cert getRemoteCertificate()
getRemoteCertificate.
Cert object.public boolean needsCertificate()
protected Collection<PendingRequest> getPendingRequests2()
getPendingRequests2.
Collection object.protected void handleCloseSecureChannelRequest(InputMessage mb, CloseSecureChannelRequest req)
handleCloseSecureChannelRequest.
mb - a InputMessage object.req - a CloseSecureChannelRequest object.protected void handleOpenChannel(InputMessage mb, OpenSecureChannelRequest req) throws ServiceResultException
handleOpenChannel.
mb - a InputMessage object.req - a OpenSecureChannelRequest object.ServiceResultException - if any.protected void handleRenewSecureChannelRequest(InputMessage mb, OpenSecureChannelRequest req) throws ServiceResultException
handleRenewSecureChannelRequest.
mb - a InputMessage object.req - a OpenSecureChannelRequest object.ServiceResultException - if any.protected void handleSecureMessage(InputMessage mb, IEncodeable msg) throws ServiceResultException
handleSecureMessage.
mb - a InputMessage object.msg - a IEncodeable object.ServiceResultException - if any.protected void onStateTransition(CloseableObjectState oldState, CloseableObjectState newState)
AbstractStateonStateTransition in class AbstractState<CloseableObjectState,ServiceResultException>oldState - a StateType object.newState - a StateType object.Copyright © 2026. All rights reserved.