Public Member Functions | |
def | __init__ |
def | close |
def | is_open |
def | message_to_binary |
def | open |
def | receive_from_header_and_body |
def | receive_from_socket |
def | select_policy |
def | set_channel |
def | set_policy_factories |
def | tcp_to_binary |
Public Attributes | |
channel | |
Private Member Functions | |
def | _check_incoming_chunk |
def | _receive |
Static Private Member Functions | |
def | _policy_matches |
Private Attributes | |
_incoming_parts | |
_max_chunk_size | |
_old_tokens | |
_open | |
_peer_sequence_number | |
_policies | |
_security_policy | |
_sequence_number |
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 | |||
) |
Definition at line 488 of file uaprotocol_hand.py.
def opcua.ua.uaprotocol_hand.SecureConnection._check_incoming_chunk | ( | self, | |
chunk | |||
) | [private] |
Definition at line 584 of file uaprotocol_hand.py.
def opcua.ua.uaprotocol_hand.SecureConnection._policy_matches | ( | policy, | |
uri, | |||
mode = None |
|||
) | [static, private] |
Definition at line 538 of file uaprotocol_hand.py.
def opcua.ua.uaprotocol_hand.SecureConnection._receive | ( | self, | |
msg | |||
) | [private] |
Definition at line 672 of file uaprotocol_hand.py.
def opcua.ua.uaprotocol_hand.SecureConnection.close | ( | self | ) |
Definition at line 524 of file uaprotocol_hand.py.
Definition at line 527 of file uaprotocol_hand.py.
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 | |||
) |
called on server side to open secure channel
Definition at line 505 of file uaprotocol_hand.py.
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 |
|||
) |
Definition at line 541 of file uaprotocol_hand.py.
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.
Definition at line 488 of file uaprotocol_hand.py.
Definition at line 488 of file uaprotocol_hand.py.
Definition at line 488 of file uaprotocol_hand.py.
Definition at line 488 of file uaprotocol_hand.py.
Definition at line 488 of file uaprotocol_hand.py.
Definition at line 488 of file uaprotocol_hand.py.
Definition at line 488 of file uaprotocol_hand.py.
Definition at line 488 of file uaprotocol_hand.py.
Definition at line 488 of file uaprotocol_hand.py.