PKCS11 Group

class PKCS11ApplicationGroup(api)

Bases: _ApplicationGroupBase

Note

The PKCS #11 VSE must be installed in order to use this driver.

create(applications, certificate, attributes=None)
Parameters
  • applications (List[Union[Object, str]]) – List of Config Object or Distinguished Name (DN) that will belong to the application group.

  • certificate (Union[Object, str]) – Config Object or Distinguished Name (DN) of the associated certificate.

  • attributes (dict) – Dictionary of attributes to apply to the group explicitly. If not given, then the attributes belonging to the first application in the given list will be assumed to be the shared attributes for the application group.

Returns

Config Object of the application.

delete(application_group, dissociate=True)

Deletes an application group object.

Parameters
get(application_group_dn, raise_error_if_not_exists=True)
Parameters
Returns

Config Object of the application.

get_applications_in_group(application_group)
Parameters

application_group (Union[Object, str]) – Config Object or Distinguished Name (DN) of the application group.

Returns

List of Distinguished Name (DN).