devices.utilsΒΆ

Utility functions for the devices app.

FunctionsΒΆ

validate_common_name_characters(common_name)

Validate that the common name contains only safe characters and no URL-like constructs.

validate_application_uri(application_uri)

Validate that the application URI has a valid scheme and is not HTTP/HTTPS.

Module ContentsΒΆ

devices.utils.validate_common_name_characters(common_name)[source]ΒΆ

Validate that the common name contains only safe characters and no URL-like constructs.

Parameters:

common_name (str)

Return type:

None

devices.utils.validate_application_uri(application_uri)[source]ΒΆ

Validate that the application URI has a valid scheme and is not HTTP/HTTPS.

Parameters:

application_uri (str)

Return type:

None