Class SequenceHeader
java.lang.Object
org.eclipse.milo.opcua.stack.core.channel.headers.SequenceHeader
The sequence header ensures that the first encrypted block of every Message sent over a channel
will start with different data.
SequenceNumbers may not be reused for any TokenId. The SecurityToken lifetime should be short enough to ensure that this never happens; however, if it does the receiver should treat it as a transport error and force a reconnect.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SequenceHeaderdecode(io.netty.buffer.ByteBuf buffer) static io.netty.buffer.ByteBufencode(SequenceHeader header, io.netty.buffer.ByteBuf buffer) booleanlonglonginthashCode()toString()
-
Field Details
-
SEQUENCE_HEADER_SIZE
public static final int SEQUENCE_HEADER_SIZE- See Also:
-
-
Constructor Details
-
SequenceHeader
public SequenceHeader(long sequenceNumber, long requestId) - Parameters:
sequenceNumber- a monotonically increasing sequence number assigned by the sender to each MessageChunk sent over the SecureChannel.requestId- an identifier assigned by the Client to OPC UA request Message. All MessageChunks for the request and the associated response use the same identifier.
-
-
Method Details