public class OpcUaSession extends ConcurrentHashMap<String,Object> implements UaSession
ConcurrentHashMap.KeySetView<K,V>AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
OpcUaSession(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId authToken,
org.eclipse.milo.opcua.stack.core.types.builtin.NodeId sessionId,
String sessionName,
double sessionTimeout,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger maxRequestSize,
org.eclipse.milo.opcua.stack.core.types.builtin.ByteString serverCertificate,
org.eclipse.milo.opcua.stack.core.types.structured.SignedSoftwareCertificate[] serverSoftwareCertificates) |
| Modifier and Type | Method and Description |
|---|---|
@Nullable Object |
getAttribute(@NotNull String name)
Returns the attribute bound to
name in this session, or null if no attribute is bound
under that name. |
org.eclipse.milo.opcua.stack.core.types.builtin.NodeId |
getAuthenticationToken()
Get the authentication token assigned by the server.
|
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger |
getMaxRequestSize() |
org.eclipse.milo.opcua.stack.core.types.builtin.ByteString |
getServerCertificate() |
org.eclipse.milo.opcua.stack.core.types.builtin.ByteString |
getServerNonce() |
org.eclipse.milo.opcua.stack.core.types.structured.SignedSoftwareCertificate[] |
getServerSoftwareCertificates() |
org.eclipse.milo.opcua.stack.core.types.builtin.NodeId |
getSessionId()
Get the session id assigned by the server.
|
String |
getSessionName() |
Double |
getSessionTimeout()
Get the revised session timeout, that is, the number of milliseconds a session may remain open without activity.
|
Object |
removeAttribute(@NotNull String name)
Removes the attribute bound with the specified name from this session.
|
@Nullable Object |
setAttribute(@NotNull String name,
@NotNull Object value)
Binds an attribute to this session, using the name specified.
|
void |
setServerNonce(org.eclipse.milo.opcua.stack.core.types.builtin.ByteString serverNonce) |
String |
toString() |
clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, put, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, valuesclonepublic OpcUaSession(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId authToken,
org.eclipse.milo.opcua.stack.core.types.builtin.NodeId sessionId,
String sessionName,
double sessionTimeout,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger maxRequestSize,
org.eclipse.milo.opcua.stack.core.types.builtin.ByteString serverCertificate,
org.eclipse.milo.opcua.stack.core.types.structured.SignedSoftwareCertificate[] serverSoftwareCertificates)
public org.eclipse.milo.opcua.stack.core.types.builtin.NodeId getAuthenticationToken()
UaSessiongetAuthenticationToken in interface UaSessionNodeId assigned by the server to the session.public org.eclipse.milo.opcua.stack.core.types.builtin.NodeId getSessionId()
UaSessionThis identifier is used to access the diagnostics information for the session in the server address space. It is also used in the audit logs and any events that report information related to the session.
getSessionId in interface UaSessionNodeId assigned by the server to the session.public String getSessionName()
getSessionName in interface UaSessionpublic Double getSessionTimeout()
UaSessiongetSessionTimeout in interface UaSessionpublic org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger getMaxRequestSize()
getMaxRequestSize in interface UaSessionpublic org.eclipse.milo.opcua.stack.core.types.structured.SignedSoftwareCertificate[] getServerSoftwareCertificates()
getServerSoftwareCertificates in interface UaSessionSignedSoftwareCertificates.public org.eclipse.milo.opcua.stack.core.types.builtin.ByteString getServerCertificate()
getServerCertificate in interface UaSessionpublic org.eclipse.milo.opcua.stack.core.types.builtin.ByteString getServerNonce()
getServerNonce in interface UaSessionpublic void setServerNonce(org.eclipse.milo.opcua.stack.core.types.builtin.ByteString serverNonce)
@Nullable public @Nullable Object getAttribute(@NotNull @NotNull String name)
UaSessionname in this session, or null if no attribute is bound
under that name.getAttribute in interface UaSessionname - the name the attribute is bound to.@Nullable public @Nullable Object setAttribute(@NotNull @NotNull String name, @NotNull @NotNull Object value)
UaSessionIf an object of the same name is already bound to the session, the object is replaced.
setAttribute in interface UaSessionname - the name to bind the attribute to.value - the attribute value.null if none exists.public Object removeAttribute(@NotNull @NotNull String name)
UaSessionIf the session does not have an attribute bound with the specified name, this method does nothing.
removeAttribute in interface UaSessionname - the name the attribute is bound to.null if none exists.public String toString()
toString in class ConcurrentHashMap<String,Object>Copyright © 2021. All rights reserved.