obtain(withRight:flags:)
Authorizes and preauthorizes one specific right.
Declaration
func obtain(withRight rightName: AuthorizationString!, flags: AuthorizationFlags) throwsParameters
- rightName:
The name of an authorization right.
- flags:
A bit mask for specifying authorization options. See Obtain(withrights:flags:environment:authorizedrights:) for details about possible flag values.
Return value
true if operation completes successfully.
Discussion
Use this method to authorize or preauthorize a single right.