otupy.core.profile.Profile
- class Profile(nsid, name)
Bases:
objectOpenC2 Profile
This is the otupy interpretation of the Profile concept. It basically defines a Profile namespace and the language extensions that are defined for that namespace.
A Profile is fully transparent to concrete implementation for controlling specific security functions, which in otupy terminology is named Actuator.
Each Profile defined for otupy must inherit from this class.
Methods
Attributes
baseTypes of fields
registerNamespace Identifier
Unique Name
- __init__(nsid, name)
Creates the Profile
A Profile is identified by its namespace identifier and unique name. :param nsid: the Profile NameSpace IDentifier :param name: the Profile Unique Name (typically a URL)
- fieldtypes = {'name': <class 'str'>, 'nsid': <class 'str'>}
Types of fields
The fieldtypes definition is not used in the current implementation. It is only provided for compatibility with the extensibility mechanism. It might be used in the future.
- name
Unique Name
- nsid
Namespace Identifier