Table of Contents

Class PolicyToolAuthorizer

Namespace
Emissary
Assembly
Emissary.dll

An IToolAuthorizer backed by a fixed set of granted policy names.

public sealed class PolicyToolAuthorizer : IToolAuthorizer
Inheritance
PolicyToolAuthorizer
Implements
Inherited Members

Constructors

PolicyToolAuthorizer(params string[])

Creates an authorizer granting exactly the given policies.

public PolicyToolAuthorizer(params string[] grantedPolicies)

Parameters

grantedPolicies string[]

The policy names the caller holds.

Methods

IsAuthorized(ToolDefinition)

Whether the current caller may use the tool.

public bool IsAuthorized(ToolDefinition tool)

Parameters

tool ToolDefinition

The tool, including its RequiredPolicy.

Returns

bool