MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / require_cryptography

Function require_cryptography

opcua/crypto/security_policies.py:18–24  ·  view source on GitHub ↗

Raise exception if cryptography module is not available. Call this function in constructors.

(obj)

Source from the content-addressed store, hash-verified

16
17
18def require_cryptography(obj):
19 """
20 Raise exception if cryptography module is not available.
21 Call this function in constructors.
22 """
23 if not CRYPTOGRAPHY_AVAILABLE:
24 raise UaError("Can't use {0}, cryptography module is not installed".format(obj.__class__.__name__))
25
26
27class Signer(object):

Callers 15

__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls 1

UaErrorClass · 0.90

Tested by

no test coverage detected