Click or drag to resize

IPolicyEnforcementServiceDemand Method (String, IPrincipal)

Demand access to the policy on behalf of principal

Namespace:  SanteDB.Core.Security.Services
Assembly:  SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.481-alpha
Syntax
void Demand(
	string policyId,
	IPrincipal principal
)

Parameters

policyId
Type: SystemString
The identifier OID of the policy for which permission is being demanded
principal
Type: System.Security.PrincipalIPrincipal
The principal for which permission is being demanded
Exceptions
ExceptionCondition
PolicyViolationExceptionWhen principal does not have permission to policyId
See Also