org.opcfoundation.ua.transport.https
Class HttpsServerSecureChannel

java.lang.Object
  extended by org.opcfoundation.ua.utils.AbstractState<CloseableObjectState,ServiceResultException>
      extended by org.opcfoundation.ua.transport.endpoint.AbstractServerSecureChannel
          extended by org.opcfoundation.ua.transport.https.HttpsServerSecureChannel
All Implemented Interfaces:
ServerSecureChannel, IStatefulObject<CloseableObjectState,ServiceResultException>

public class HttpsServerSecureChannel
extends AbstractServerSecureChannel

HttpsServerSecureChannel class.


Field Summary
 
Fields inherited from class org.opcfoundation.ua.transport.endpoint.AbstractServerSecureChannel
activeToken, tokens
 
Constructor Summary
HttpsServerSecureChannel(HttpsServerEndpointHandler httpsEndpointHandler, int secureChannelId)
          Constructor for HttpsServerSecureChannel.
 
Method Summary
 void dispose()
          Close and dispose.
 ServerConnection getConnection()
          Get current socket connection if applicable for the binding type.
 String getConnectURL()
          getConnectURL.
 Endpoint getEndpoint()
          Get endpoint
 KeyPair getLocalCertificate()
          getLocalCertificate.
 MessageSecurityMode getMessageSecurityMode()
          getMessageSecurityMode.
 void getPendingServiceRequests(Collection<EndpointServiceRequest<?,?>> result)
          Get all unanswered service requests.
 Cert getRemoteCertificate()
          getRemoteCertificate.
 SecurityPolicy getSecurityPolicy()
          getSecurityPolicy.
 Server getServer()
          Get Server
 boolean needsCertificate()
          
protected  void onListenerException(RuntimeException rte)
          Override this.
 void setConnection(HttpsServerConnection connection)
          setConnection.
 void setError(ServiceResultException e)
          setError.
 
Methods inherited from class org.opcfoundation.ua.transport.endpoint.AbstractServerSecureChannel
close, closeAsync, getActiveSecurityToken, getLatestNonExpiredToken, getRemoteAddress, getSecureChannelId, getSecurityToken, isOpen, setActiveSecurityToken, toString
 
Methods inherited from class org.opcfoundation.ua.utils.AbstractState
addStateListener, addStateNotifiable, assertNoError, attemptSetState, clearError, getError, getState, hasError, isStateTransitionAllowed, onStateTransition, removeStateListener, removeStateNotifiable, setState, setState, waitForState, waitForState, waitForStateUninterruptibly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpsServerSecureChannel

public HttpsServerSecureChannel(HttpsServerEndpointHandler httpsEndpointHandler,
                                int secureChannelId)

Constructor for HttpsServerSecureChannel.

Parameters:
httpsEndpointHandler - a HttpsServerEndpointHandler object.
secureChannelId - a int.
Method Detail

getLocalCertificate

public KeyPair getLocalCertificate()

getLocalCertificate.

Returns:
a KeyPair object.

getRemoteCertificate

public Cert getRemoteCertificate()

getRemoteCertificate.

Returns:
a Cert object.

getMessageSecurityMode

public MessageSecurityMode getMessageSecurityMode()

getMessageSecurityMode.

Specified by:
getMessageSecurityMode in interface ServerSecureChannel
Overrides:
getMessageSecurityMode in class AbstractServerSecureChannel
Returns:
a MessageSecurityMode object.

getSecurityPolicy

public SecurityPolicy getSecurityPolicy()

getSecurityPolicy.

Specified by:
getSecurityPolicy in interface ServerSecureChannel
Overrides:
getSecurityPolicy in class AbstractServerSecureChannel
Returns:
a SecurityPolicy object.

setError

public void setError(ServiceResultException e)

setError.

Overrides:
setError in class AbstractServerSecureChannel
Parameters:
e - a ServiceResultException object.

onListenerException

protected void onListenerException(RuntimeException rte)
Override this.

Overrides:
onListenerException in class AbstractServerSecureChannel
Parameters:
rte - a RuntimeException object.

getConnection

public ServerConnection getConnection()
Get current socket connection if applicable for the binding type.

Returns:
connection or null

setConnection

public void setConnection(HttpsServerConnection connection)

setConnection.

Parameters:
connection - a HttpsServerConnection object.

getConnectURL

public String getConnectURL()

getConnectURL.

Returns:
a String object.

dispose

public void dispose()
Close and dispose. The object becomes unusuable.


getPendingServiceRequests

public void getPendingServiceRequests(Collection<EndpointServiceRequest<?,?>> result)
Get all unanswered service requests.

Parameters:
result - container to fill with unanswered service requests

getEndpoint

public Endpoint getEndpoint()
Get endpoint

Returns:
Endpoint

getServer

public Server getServer()
Get Server

Returns:
server

needsCertificate

public boolean needsCertificate()



Copyright © 2018. All rights reserved.