Skip to main content

PermissionSecret

Represents a secure identifier for a permission, containing the permission's ID, code, and associated permission group information.

This class extends BaseSecret to provide secure identification for permissions. It combines unique identifiers and permission metadata with inherited security token functionality.

Properties

NameDescription
IdGets the unique identifier of the permission.
PermissionGroupIdGets the identifier of the permission group that contains this permission.
CodeGets the code that identifies the permission.
RandomValueA randomly generated value, created when the secret is initialized.
TokenIdThe unique identifier associated with the secret token.

Constructors

NameDescription
PermissionSecret(id, code, permissionGroupId, tokenId)Initializes a new instance of the PermissionSecret class with the specified permission details and security token.