public abstract class AbstractServerSecureChannel extends AbstractState<CloseableObjectState,ServiceResultException> implements ServerSecureChannel
| Modifier and Type | Field and Description |
|---|---|
protected SecurityToken |
activeToken
The active token, This token is used in write operations
|
protected Map<Integer,SecurityToken> |
tokens
Collection of all Security Tokens
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractServerSecureChannel(int secureChannelId)
Constructor for AbstractServerSecureChannel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the secure channel.
|
AsyncResult<ServerSecureChannel> |
closeAsync()
Close the secure channel.
|
SecurityToken |
getActiveSecurityToken()
getActiveSecurityToken.
|
SecurityToken |
getLatestNonExpiredToken()
getLatestNonExpiredToken.
|
MessageSecurityMode |
getMessageSecurityMode()
getMessageSecurityMode.
|
protected String |
getRemoteAddress()
getRemoteAddress.
|
int |
getSecureChannelId()
Getter for the field
secureChannelId. |
SecurityPolicy |
getSecurityPolicy()
getSecurityPolicy.
|
SecurityToken |
getSecurityToken(int tokenId)
getSecurityToken.
|
boolean |
isOpen()
Is the secure channel open.
|
protected void |
onListenerException(RuntimeException rte)
Override this.
|
void |
setActiveSecurityToken(SecurityToken token)
setActiveSecurityToken.
|
void |
setError(ServiceResultException e)
setError.
|
String |
toString() |
addStateListener, addStateNotifiable, attemptSetState, clearError, getError, getState, hasError, isStateTransitionAllowed, onStateTransition, removeStateListener, removeStateNotifiable, setState, setState, throwIfError, waitForState, waitForState, waitForStateUninterruptiblyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdispose, getConnection, getConnectURL, getEndpoint, getLocalCertificate, getPendingServiceRequests, getRemoteCertificate, getServer, needsCertificateprotected Map<Integer,SecurityToken> tokens
protected SecurityToken activeToken
protected AbstractServerSecureChannel(int secureChannelId)
Constructor for AbstractServerSecureChannel.
secureChannelId - a int.public void close()
This method sends CloseSecureChannelRequest to the server and closes the socket connection. If sending of the message fails and thus the servers never receives notification about closed secure channel, then there is no resend attempt, instead the secure channel will eventually time out in the server.
All pending requests will fault with Bad_SecureChannelClosed
close in interface ServerSecureChannelpublic AsyncResult<ServerSecureChannel> closeAsync()
This method sends CloseSecureChannelRequest to the server and closes the socket connection. If sending of the message fails and thus the servers never receives notification about closed secure channel, then there is no resend attempt, instead the secure channel will eventually time out in the server.
All pending requests will fault with Bad_SecureChannelClosed
closeAsync in interface ServerSecureChannelpublic SecurityToken getActiveSecurityToken()
getActiveSecurityToken.
SecurityToken object.public SecurityToken getLatestNonExpiredToken()
getLatestNonExpiredToken.
SecurityToken object.public MessageSecurityMode getMessageSecurityMode()
getMessageSecurityMode.
getMessageSecurityMode in interface ServerSecureChannelMessageSecurityMode object.public int getSecureChannelId()
Getter for the field secureChannelId.
getSecureChannelId in interface ServerSecureChannelpublic SecurityPolicy getSecurityPolicy()
getSecurityPolicy.
getSecurityPolicy in interface ServerSecureChannelSecurityPolicy object.public SecurityToken getSecurityToken(int tokenId)
getSecurityToken.
tokenId - a int.SecurityToken object.public boolean isOpen()
isOpen in interface ServerSecureChannelpublic void setActiveSecurityToken(SecurityToken token)
setActiveSecurityToken.
token - a SecurityToken object.public void setError(ServiceResultException e)
setError.
setError in class AbstractState<CloseableObjectState,ServiceResultException>e - a ServiceResultException object.protected void onListenerException(RuntimeException rte)
onListenerException in class AbstractState<CloseableObjectState,ServiceResultException>rte - a RuntimeException object.Copyright © 2026. All rights reserved.