Public Member Functions | Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
opcua.ua.uaprotocol_hand.SecureConnection Class Reference
Inheritance diagram for opcua.ua.uaprotocol_hand.SecureConnection:
Inheritance graph
[legend]

Public Member Functions

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)
 

Public Attributes

 channel
 

Private Member Functions

def _check_incoming_chunk (self, chunk)
 
def _receive (self, msg)
 

Static Private Member Functions

def _policy_matches (policy, uri, mode=None)
 

Private Attributes

 _incoming_parts
 
 _max_chunk_size
 
 _old_tokens
 
 _open
 
 _peer_sequence_number
 
 _policies
 
 _security_policy
 
 _sequence_number
 

Detailed Description

Common logic for client and server

Definition at line 483 of file uaprotocol_hand.py.

Constructor & Destructor Documentation

def opcua.ua.uaprotocol_hand.SecureConnection.__init__ (   self,
  security_policy 
)

Definition at line 488 of file uaprotocol_hand.py.

Member Function Documentation

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 
)
staticprivate

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.

def opcua.ua.uaprotocol_hand.SecureConnection.is_open (   self)

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.

Member Data Documentation

opcua.ua.uaprotocol_hand.SecureConnection._incoming_parts
private

Definition at line 491 of file uaprotocol_hand.py.

opcua.ua.uaprotocol_hand.SecureConnection._max_chunk_size
private

Definition at line 497 of file uaprotocol_hand.py.

opcua.ua.uaprotocol_hand.SecureConnection._old_tokens
private

Definition at line 495 of file uaprotocol_hand.py.

opcua.ua.uaprotocol_hand.SecureConnection._open
private

Definition at line 496 of file uaprotocol_hand.py.

opcua.ua.uaprotocol_hand.SecureConnection._peer_sequence_number
private

Definition at line 490 of file uaprotocol_hand.py.

opcua.ua.uaprotocol_hand.SecureConnection._policies
private

Definition at line 493 of file uaprotocol_hand.py.

opcua.ua.uaprotocol_hand.SecureConnection._security_policy
private

Definition at line 492 of file uaprotocol_hand.py.

opcua.ua.uaprotocol_hand.SecureConnection._sequence_number
private

Definition at line 489 of file uaprotocol_hand.py.

opcua.ua.uaprotocol_hand.SecureConnection.channel

Definition at line 494 of file uaprotocol_hand.py.


The documentation for this class was generated from the following file:


ros_opcua_impl_python_opcua
Author(s): Denis Štogl , Daniel Draper
autogenerated on Tue Jan 19 2021 03:12:45