Class

SFAuthorization

A class that allows you to restrict a user’s access to particular features in your Mac app or daemon.

Declaration

class SFAuthorization : NSObject

Overview

The SFAuthorization class is an interface for some of the functions in the Authorization Services API. You can use the authorizationRef() method to obtain an authorization reference, used in other calls to Authorization Services functions. The Authorization Services API is documented in Authorization Services.

Topics

Allocating and initializing an authorization object

class func authorization() -> Any!

Returns an authorization object initialized with a default environment, flags, and rights.

init!()

Initializes an authorization object with default environment, flags, and rights.

Obtaining an authorization reference

func authorizationRef() -> AuthorizationRef!

Returns the authorization reference for this object.

Preventing credentials from being shared

func invalidateCredentials()

Prevents any rights that were obtained by this object from being preserved.

Relationships

Inherits From