A class that allows you to restrict a user’s access to particular features in your Mac app or daemon.
SDK
- macOS 10.3+
Framework
- Security
Foundation
Declaration
class SFAuthorization : NSObject
Overview
Important
The authorization services API is not supported within an app sandbox because it allows privilege escalation.
The SFAuthorization
class is an interface for some of the functions in the Authorization Services API. You can use the authorization
method to obtain an authorization reference, used in other calls to Authorization Services functions. The Authorization Services API is documented in Authorization Services.