Authorization Name Tags

Use name tags to define authorization security items.

Overview

These tags are possible values for the name field of an AuthorizationItem structure. This is not an all-inclusive set. You determine the name of the right to request. These environment tags are for future use.

Topics

Constants

var kAuthorizationEnvironmentUsername: String

The type for an authorization item containing a user name.

var kAuthorizationEnvironmentPassword: String

The type for an authorization item containing a password.

var kAuthorizationEnvironmentShared: String

The type for an authorization item containing a shared right.

var kAuthorizationRightExecute: String

The type for an authorization item requesting the right to execute with privileges.

var kAuthorizationEnvironmentPrompt: String

The type for an authorization item containing the name of the item that should be passed into the environment when specifying invocation-specific additional text.

var kAuthorizationEnvironmentIcon: String

The type for an authorization item containing the name of the item that should be passed into the environment when specifying an alternate icon.

var kAuthorizationPamResult: String

The type for an authorization item containing a return code from a Pluggable Authentication Module (PAM).

See Also

Authorization Items

struct AuthorizationItem

A structure containing information about an authorization right or the authorization environment.

struct AuthorizationItemSet

A structure containing a set of authorization items.

typealias AuthorizationRights

An authorization item set designated to represent a set of rights.

typealias AuthorizationEnvironment

An authorization item set designated to hold environment information relevant to authorization decisions.

func AuthorizationFreeItemSet(UnsafeMutablePointer<AuthorizationItemSet>) -> OSStatus

Frees the memory associated with a set of authorization items.