public class Session extends Object implements SessionServiceSet
| Modifier and Type | Class and Description |
|---|---|
static interface |
Session.LifecycleListener |
| Constructor and Description |
|---|
Session(OpcUaServer server,
NodeId sessionId,
String sessionName,
Duration sessionTimeout,
ApplicationDescription clientDescription,
String serverUri,
UInteger maxResponseMessageSize,
EndpointDescription endpoint,
long secureChannelId,
SecurityConfiguration securityConfiguration) |
public Session(OpcUaServer server, NodeId sessionId, String sessionName, Duration sessionTimeout, ApplicationDescription clientDescription, String serverUri, UInteger maxResponseMessageSize, EndpointDescription endpoint, long secureChannelId, SecurityConfiguration securityConfiguration)
public OpcUaServer getServer()
public long getSecureChannelId()
public SecurityConfiguration getSecurityConfiguration()
public EndpointDescription getEndpoint()
@Nullable public @Nullable Object getIdentityObject()
@Nullable public @Nullable UserIdentityToken getIdentityToken()
@Nullable public @Nullable UserTokenType getTokenType()
@Nullable public @Nullable String getClientUserId()
If the UserIdentityToken is a UserNameIdentityToken then the ClientUserId is the UserName.
If the UserIdentityToken is an X509IdentityToken then the ClientUserId is the X509 Subject Name of the Certificate.
If the UserIdentityToken is an IssuedIdentityToken then the ClientUserId shall be a string that represents the owner of the token. The best choice for the string depends on the type of IssuedIdentityToken.
If an AnonymousIdentityToken was used, the value is null.
Session.public List<String> getClientUserIdHistory()
getClientUserId()public Map<ByteString,BrowseHelper.BrowseContinuationPoint> getBrowseContinuationPoints()
public void setSecureChannelId(long secureChannelId)
public void setIdentityObject(Object identityObject, UserIdentityToken identityToken)
public void setEndpoint(EndpointDescription endpoint)
public void setSecurityConfiguration(SecurityConfiguration securityConfiguration)
public void setClientAddress(InetAddress clientAddress)
public InetAddress getClientAddress()
InetAddress of the client that activated this session.
The address is set or updated when time the session is activated or re-activated.
InetAddress of the client that activated this session.public SessionDiagnostics getSessionDiagnostics()
public SessionSecurityDiagnostics getSessionSecurityDiagnostics()
public void addLifecycleListener(Session.LifecycleListener listener)
public ApplicationDescription getClientDescription()
public String getServerUri()
public Double getSessionTimeout()
public UInteger getMaxResponseMessageSize()
public DateTime getConnectionTime()
public DateTime getLastContactTime()
public ByteString getLastNonce()
public NodeId getSessionId()
public String getSessionName()
@Nullable public @Nullable String[] getLocaleIds()
public void setLocaleIds(@Nullable
@Nullable String[] localeIds)
public DefaultAttributeServiceSet getAttributeServiceSet()
public DefaultAttributeHistoryServiceSet getAttributeHistoryServiceSet()
public DefaultMethodServiceSet getMethodServiceSet()
public DefaultMonitoredItemServiceSet getMonitoredItemServiceSet()
public NodeManagementServiceSet getNodeManagementServiceSet()
public DefaultQueryServiceSet getQueryServiceSet()
public DefaultSubscriptionServiceSet getSubscriptionServiceSet()
public DefaultViewServiceSet getViewServiceSet()
public SubscriptionManager getSubscriptionManager()
public void onCreateSession(ServiceRequest serviceRequest)
onCreateSession in interface SessionServiceSetpublic void onActivateSession(ServiceRequest serviceRequest)
onActivateSession in interface SessionServiceSetpublic void onCloseSession(ServiceRequest serviceRequest)
onCloseSession in interface SessionServiceSetpublic void onCancel(ServiceRequest serviceRequest)
onCancel in interface SessionServiceSetCopyright © 2021. All rights reserved.