|
def | __init__ (self, security_policy) |
|
def | close (self) |
|
def | is_open (self) |
|
def | message_to_binary (self, message, message_type=MessageType.SecureMessage, request_id=0, algohdr=None) |
|
def | open (self, params, server) |
|
def | receive_from_header_and_body (self, header, body) |
|
def | receive_from_socket (self, socket) |
|
def | select_policy (self, uri, peer_certificate, mode=None) |
|
def | set_channel (self, channel) |
|
def | set_policy_factories (self, policies) |
|
def | tcp_to_binary (self, message_type, message) |
|
Common logic for client and server
Definition at line 483 of file uaprotocol_hand.py.
def opcua.ua.uaprotocol_hand.SecureConnection.__init__ |
( |
|
self, |
|
|
|
security_policy |
|
) |
| |
def opcua.ua.uaprotocol_hand.SecureConnection._check_incoming_chunk |
( |
|
self, |
|
|
|
chunk |
|
) |
| |
|
private |
def opcua.ua.uaprotocol_hand.SecureConnection._policy_matches |
( |
|
policy, |
|
|
|
uri, |
|
|
|
mode = None |
|
) |
| |
|
staticprivate |
def opcua.ua.uaprotocol_hand.SecureConnection._receive |
( |
|
self, |
|
|
|
msg |
|
) |
| |
|
private |
def opcua.ua.uaprotocol_hand.SecureConnection.close |
( |
|
self | ) |
|
def opcua.ua.uaprotocol_hand.SecureConnection.is_open |
( |
|
self | ) |
|
def opcua.ua.uaprotocol_hand.SecureConnection.message_to_binary |
( |
|
self, |
|
|
|
message, |
|
|
|
message_type = MessageType.SecureMessage , |
|
|
|
request_id = 0 , |
|
|
|
algohdr = None |
|
) |
| |
Convert OPC UA secure message to binary.
The only supported types are SecureOpen, SecureMessage, SecureClose
if message_type is SecureMessage, the AlgoritmHeader should be passed as arg
Definition at line 560 of file uaprotocol_hand.py.
def opcua.ua.uaprotocol_hand.SecureConnection.open |
( |
|
self, |
|
|
|
params, |
|
|
|
server |
|
) |
| |
def opcua.ua.uaprotocol_hand.SecureConnection.receive_from_header_and_body |
( |
|
self, |
|
|
|
header, |
|
|
|
body |
|
) |
| |
Convert MessageHeader and binary body to OPC UA TCP message (see OPC UA
specs Part 6, 7.1: Hello, Acknowledge or ErrorMessage), or a Message
object, or None (if intermediate chunk is received)
Definition at line 626 of file uaprotocol_hand.py.
def opcua.ua.uaprotocol_hand.SecureConnection.receive_from_socket |
( |
|
self, |
|
|
|
socket |
|
) |
| |
Convert binary stream to OPC UA TCP message (see OPC UA
specs Part 6, 7.1: Hello, Acknowledge or ErrorMessage), or a Message
object, or None (if intermediate chunk is received)
Definition at line 658 of file uaprotocol_hand.py.
def opcua.ua.uaprotocol_hand.SecureConnection.select_policy |
( |
|
self, |
|
|
|
uri, |
|
|
|
peer_certificate, |
|
|
|
mode = None |
|
) |
| |
def opcua.ua.uaprotocol_hand.SecureConnection.set_channel |
( |
|
self, |
|
|
|
channel |
|
) |
| |
Called on client side when getting secure channel data from server
Definition at line 499 of file uaprotocol_hand.py.
def opcua.ua.uaprotocol_hand.SecureConnection.set_policy_factories |
( |
|
self, |
|
|
|
policies |
|
) |
| |
Set a list of available security policies.
Use this in servers with multiple endpoints with different security
Definition at line 530 of file uaprotocol_hand.py.
def opcua.ua.uaprotocol_hand.SecureConnection.tcp_to_binary |
( |
|
self, |
|
|
|
message_type, |
|
|
|
message |
|
) |
| |
Convert OPC UA TCP message (see OPC UA specs Part 6, 7.1) to binary.
The only supported types are Hello, Acknowledge and ErrorMessage
Definition at line 550 of file uaprotocol_hand.py.
opcua.ua.uaprotocol_hand.SecureConnection._incoming_parts |
|
private |
opcua.ua.uaprotocol_hand.SecureConnection._max_chunk_size |
|
private |
opcua.ua.uaprotocol_hand.SecureConnection._old_tokens |
|
private |
opcua.ua.uaprotocol_hand.SecureConnection._open |
|
private |
opcua.ua.uaprotocol_hand.SecureConnection._peer_sequence_number |
|
private |
opcua.ua.uaprotocol_hand.SecureConnection._policies |
|
private |
opcua.ua.uaprotocol_hand.SecureConnection._security_policy |
|
private |
opcua.ua.uaprotocol_hand.SecureConnection._sequence_number |
|
private |
opcua.ua.uaprotocol_hand.SecureConnection.channel |
The documentation for this class was generated from the following file: