Public Member Functions | |
def | __init__ (self, security_policy, body=b'', msg_type=MessageType.SecureMessage, chunk_type=ChunkType.Single) |
def | __str__ (self) |
def | encrypted_size (self, plain_size) |
def | to_binary (self) |
Static Public Member Functions | |
def | from_binary (security_policy, data) |
def | from_header_and_body (security_policy, header, buf) |
def | max_body_size (crypto, max_chunk_size) |
def | message_to_chunks (security_policy, body, max_chunk_size, message_type=MessageType.SecureMessage, channel_id=1, request_id=1, token_id=1) |
Public Attributes | |
Body | |
MessageHeader | |
SecurityHeader | |
SequenceHeader | |
Private Attributes | |
_security_policy | |
Static Private Attributes | |
__repr__ = __str__ | |
Message Chunk, as described in OPC UA specs Part 6, 6.7.2.
Definition at line 348 of file uaprotocol_hand.py.
def opcua.ua.uaprotocol_hand.MessageChunk.__init__ | ( | self, | |
security_policy, | |||
body = b'' , |
|||
msg_type = MessageType.SecureMessage , |
|||
chunk_type = ChunkType.Single |
|||
) |
Definition at line 353 of file uaprotocol_hand.py.
def opcua.ua.uaprotocol_hand.MessageChunk.__str__ | ( | self | ) |
Definition at line 457 of file uaprotocol_hand.py.
def opcua.ua.uaprotocol_hand.MessageChunk.encrypted_size | ( | self, | |
plain_size | |||
) |
Definition at line 397 of file uaprotocol_hand.py.
|
static |
Definition at line 366 of file uaprotocol_hand.py.
|
static |
Definition at line 371 of file uaprotocol_hand.py.
|
static |
Definition at line 413 of file uaprotocol_hand.py.
|
static |
Pack message body (as binary string) into one or more chunks. Size of each chunk will not exceed max_chunk_size. Returns a list of MessageChunks. SequenceNumber is not initialized here, it must be set by Secure Channel driver.
Definition at line 420 of file uaprotocol_hand.py.
def opcua.ua.uaprotocol_hand.MessageChunk.to_binary | ( | self | ) |
Definition at line 403 of file uaprotocol_hand.py.
|
staticprivate |
Definition at line 461 of file uaprotocol_hand.py.
|
private |
Definition at line 363 of file uaprotocol_hand.py.
opcua.ua.uaprotocol_hand.MessageChunk.Body |
Definition at line 362 of file uaprotocol_hand.py.
opcua.ua.uaprotocol_hand.MessageChunk.MessageHeader |
Definition at line 354 of file uaprotocol_hand.py.
opcua.ua.uaprotocol_hand.MessageChunk.SecurityHeader |
Definition at line 356 of file uaprotocol_hand.py.
opcua.ua.uaprotocol_hand.MessageChunk.SequenceHeader |
Definition at line 361 of file uaprotocol_hand.py.