|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opcfoundation.ua.utils.AbstractState<CloseableObjectState,ServiceResultException>
org.opcfoundation.ua.transport.endpoint.AbstractServerSecureChannel
org.opcfoundation.ua.transport.tcp.nio.OpcTcpServerSecureChannel
public class OpcTcpServerSecureChannel
OpcTcpServerSecureChannel class.
| Field Summary | |
|---|---|
AtomicInteger |
recvSequenceNumber
Sequence number counter of inbound messages |
SecurityConfiguration |
securityConfiguration
Security profile for this security channel |
AtomicInteger |
sendSequenceNumber
Sequence number counter of outbound messages |
| Fields inherited from class org.opcfoundation.ua.transport.endpoint.AbstractServerSecureChannel |
|---|
activeToken, tokens |
| Constructor Summary | |
|---|---|
OpcTcpServerSecureChannel(OpcTcpServerConnection connection,
int secureChannelId)
Constructor for OpcTcpServerSecureChannel. |
|
| Method Summary | |
|---|---|
void |
dispose()
Close and dispose. |
ServerConnection |
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. |
| Methods inherited from class org.opcfoundation.ua.transport.endpoint.AbstractServerSecureChannel |
|---|
close, closeAsync, getActiveSecurityToken, getLatestNonExpiredToken, getMessageSecurityMode, getRemoteAddress, getSecureChannelId, getSecurityPolicy, getSecurityToken, isOpen, onListenerException, setActiveSecurityToken, setError, toString |
| Methods inherited from class org.opcfoundation.ua.utils.AbstractState |
|---|
addStateListener, addStateNotifiable, assertNoError, attemptSetState, clearError, getError, getState, hasError, isStateTransitionAllowed, removeStateListener, removeStateNotifiable, setState, setState, waitForState, waitForState, waitForStateUninterruptibly |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public SecurityConfiguration securityConfiguration
public final AtomicInteger sendSequenceNumber
public final AtomicInteger recvSequenceNumber
| Constructor Detail |
|---|
public OpcTcpServerSecureChannel(OpcTcpServerConnection connection,
int secureChannelId)
Constructor for OpcTcpServerSecureChannel.
connection - a OpcTcpServerConnection object.secureChannelId - a int.| Method Detail |
|---|
public KeyPair getLocalCertificate()
getLocalCertificate.
KeyPair object.public Cert getRemoteCertificate()
getRemoteCertificate.
Cert object.public String getConnectURL()
public ServerConnection getConnection()
public Endpoint getEndpoint()
public Server getServer()
getServer.
Server object.public void getPendingServiceRequests(Collection<EndpointServiceRequest<?,?>> result)
result - container to fill with unanswered service requests
protected void handleSecureMessage(InputMessage mb,
IEncodeable msg)
throws ServiceResultException
handleSecureMessage.
mb - a InputMessage object.msg - a IEncodeable object.
ServiceResultException - if any.
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 handleCloseSecureChannelRequest(InputMessage mb,
CloseSecureChannelRequest req)
handleCloseSecureChannelRequest.
mb - a InputMessage object.req - a CloseSecureChannelRequest object.
protected void onStateTransition(CloseableObjectState oldState,
CloseableObjectState newState)
onStateTransition in class AbstractState<CloseableObjectState,ServiceResultException>oldState - a StateType object.newState - a StateType object.protected Collection<PendingRequest> getPendingRequests2()
getPendingRequests2.
Collection object.public void dispose()
public boolean needsCertificate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||