MonobjcMonobjc Documented Class Library
PermitWithRightsFlagsEnvironmentAuthorizedRights Method (rights, flags, environment, authorizedRights)
NamespacesMonobjc.SecurityFoundationSFAuthorizationPermitWithRightsFlagsEnvironmentAuthorizedRights(IntPtr, AuthorizationFlags, IntPtr, IntPtr)

Authorizes and preauthorizes rights to access a privileged operation and returns the granted rights. (Deprecated in Mac OS X v10.5. Use obtainWithRights:flags:environment:authorizedRights:error: instead.)

Original signature is '- (OSStatus)permitWithRights:(const AuthorizationRights *)rights flags:(AuthorizationFlags)flags environment:(const AuthorizationEnvironment *)environment authorizedRights:(AuthorizationRights **)authorizedRights'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
[ObsoleteAttribute("Deprecated in Mac OS X v10.5. Use obtainWithRights:flags:environment:authorizedRights:error: instead.")]
public virtual int PermitWithRightsFlagsEnvironmentAuthorizedRights(
	IntPtr rights,
	AuthorizationFlags flags,
	IntPtr environment,
	IntPtr authorizedRights
)
<ObsoleteAttribute("Deprecated in Mac OS X v10.5. Use obtainWithRights:flags:environment:authorizedRights:error: instead.")> _
Public Overridable Function PermitWithRightsFlagsEnvironmentAuthorizedRights ( _
	rights As IntPtr, _
	flags As AuthorizationFlags, _
	environment As IntPtr, _
	authorizedRights As IntPtr _
) As Integer
[ObsoleteAttribute(L"Deprecated in Mac OS X v10.5. Use obtainWithRights:flags:environment:authorizedRights:error: instead.")]
public:
virtual int PermitWithRightsFlagsEnvironmentAuthorizedRights(
	IntPtr rights, 
	AuthorizationFlags flags, 
	IntPtr environment, 
	IntPtr authorizedRights
)
Parameters
rights (IntPtr)
A pointer to a set of authorization rights you create. Pass NULL if the application requires no rights at this time.
flags (AuthorizationFlags)
A bit mask for specifying authorization options. Use the following option sets:
environment (IntPtr)
Data used when authorizing or preauthorizing rights. In Mac OS X v10.3 and later, you can pass icon or prompt data to be used in the authentication dialog box. Possible values for this parameter are listed in Security/AuthorizationTags.h. If you are not passing any data in this parameter, pass the constant kAuthorizationEmptyEnvironment.
authorizedRights (IntPtr)
A pointer to a newly allocated AuthorizationRights structure. On return, this structure contains the rights granted by the Security framework. If you do not require this information, pass NULL. If you specify the kAuthorizationFlagPreAuthorize mask in the flags parameter, the method returns all the requested rights, including those not granted, but the flags of the rights that could not be preauthorized include the kAuthorizationFlagCanNotPreAuthorize bit.
Return Value

[Missing <returns> documentation for "M:Monobjc.SecurityFoundation.SFAuthorization.PermitWithRightsFlagsEnvironmentAuthorizedRights(System.IntPtr,Monobjc.SecurityFoundation.AuthorizationFlags,System.IntPtr,System.IntPtr)"]

Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.SecurityFoundation (Module: Monobjc.SecurityFoundation)