|
||||||||||
| 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.https.HttpsServerConnection
public class HttpsServerConnection
This class implements HTTP TSL/SSL conversation. The messages are serialized using binary scheme, the same as with tcp conversation. Because HTTPS channel is already secure, a OPC secure channel is not opened. All HTTPS communications via a URL shall be treated as a single SecureChannel that is shared by multiple Clients. Stack shall provide a unique identifier for the SecureChannel which allows Applications correlate a request with a SecureChannel.This means that Sessions can only be considered secure if the AuthenticationToken (see Part 4) is long (>20 bytes) and HTTPS encryption is enabled.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.opcfoundation.ua.transport.ServerConnection |
|---|
ServerConnection.SecureChannelListener |
| Constructor Summary | |
|---|---|
HttpsServerConnection(HttpsServer server,
org.apache.http.nio.NHttpServerConnection conn)
Constructor for HttpsServerConnection. |
|
| Method Summary | |
|---|---|
void |
addConnectionListener(IConnectionListener listener)
Add response listener |
void |
addSecureChannelListener(ServerConnection.SecureChannelListener l)
addSecureChannelListener. |
SocketAddress |
getLocalAddress()
Get local socket address |
org.apache.http.nio.NHttpServerConnection |
getNHttpServerConnection()
getNHttpServerConnection. |
SocketAddress |
getRemoteAddress()
Get remote socket address |
void |
getSecureChannels(Collection<ServerSecureChannel> list)
Get all open and opening secure channels of this connection. |
protected void |
onStateTransition(CloseableObjectState oldState,
CloseableObjectState newState)
Override this. |
void |
removeConnectionListener(IConnectionListener listener)
Add response listener |
void |
removeSecureChannelListener(ServerConnection.SecureChannelListener l)
removeSecureChannelListener. |
| Methods inherited from class org.opcfoundation.ua.utils.AbstractState |
|---|
addStateListener, addStateNotifiable, assertNoError, attemptSetState, clearError, getError, getState, hasError, isStateTransitionAllowed, onListenerException, removeStateListener, removeStateNotifiable, setError, setState, setState, waitForState, waitForState, waitForStateUninterruptibly |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpsServerConnection(HttpsServer server,
org.apache.http.nio.NHttpServerConnection conn)
Constructor for HttpsServerConnection.
server - a HttpsServer object.conn - a NHttpServerConnection object.| Method Detail |
|---|
public SocketAddress getLocalAddress()
getLocalAddress in interface ServerConnectionpublic SocketAddress getRemoteAddress()
getRemoteAddress in interface ServerConnectionpublic org.apache.http.nio.NHttpServerConnection getNHttpServerConnection()
getNHttpServerConnection.
NHttpServerConnection object.public void getSecureChannels(Collection<ServerSecureChannel> list)
getSecureChannels in interface ServerConnectionlist - list to be filledpublic void addSecureChannelListener(ServerConnection.SecureChannelListener l)
addSecureChannelListener.
addSecureChannelListener in interface ServerConnectionl - a ServerConnection.SecureChannelListener object.public void removeSecureChannelListener(ServerConnection.SecureChannelListener l)
removeSecureChannelListener.
removeSecureChannelListener in interface ServerConnectionl - a ServerConnection.SecureChannelListener object.public void addConnectionListener(IConnectionListener listener)
addConnectionListener in interface ServerConnectionlistener - a IConnectionListener object.public void removeConnectionListener(IConnectionListener listener)
removeConnectionListener in interface ServerConnectionlistener - a IConnectionListener object.
protected void onStateTransition(CloseableObjectState oldState,
CloseableObjectState newState)
onStateTransition in class AbstractState<CloseableObjectState,ServiceResultException>oldState - a StateType object.newState - a StateType object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||