public interface UaSession
| 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.
|
@Nullable 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.
|
org.eclipse.milo.opcua.stack.core.types.builtin.NodeId getAuthenticationToken()
NodeId assigned by the server to the session.org.eclipse.milo.opcua.stack.core.types.builtin.NodeId getSessionId()
This 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.
NodeId assigned by the server to the session.String getSessionName()
Double getSessionTimeout()
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger getMaxRequestSize()
org.eclipse.milo.opcua.stack.core.types.builtin.ByteString getServerNonce()
org.eclipse.milo.opcua.stack.core.types.builtin.ByteString getServerCertificate()
org.eclipse.milo.opcua.stack.core.types.structured.SignedSoftwareCertificate[] getServerSoftwareCertificates()
SignedSoftwareCertificates.@Nullable @Nullable Object getAttribute(@NotNull @NotNull String name)
name in this session, or null if no attribute is bound
under that name.name - the name the attribute is bound to.@Nullable @Nullable Object setAttribute(@NotNull @NotNull String name, @NotNull @NotNull Object value)
If an object of the same name is already bound to the session, the object is replaced.
name - the name to bind the attribute to.value - the attribute value.null if none exists.@Nullable @Nullable Object removeAttribute(@NotNull @NotNull String name)
If the session does not have an attribute bound with the specified name, this method does nothing.
name - the name the attribute is bound to.null if none exists.Copyright © 2021. All rights reserved.