pd property

ProtectionDomain? pd
final

The ProtectionDomain associated with this class reference.

If not provided, defaults to ProtectionDomain.current when calling toClass. The protection domain controls access permissions and security context for class loading and reflection operations.

Example

final secureDomain = ProtectionDomain.secure();
final classType = ClassType(
  name: 'SecureService',
  pd: secureDomain
);

Implementation

final ProtectionDomain? pd;