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.
TokenIdThe unique identifier associated with the secret token.
PermissionGroupIdGets the identifier of the permission group that contains this permission.
RandomValueA randomly generated value, created when the secret is initialized.
CodeGets the code that identifies the permission.

Constructors

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