#[repr(C)]pub struct AuthorizationCallbacks {Show 16 fields
pub version: u32,
pub SetResult: unsafe extern "C-unwind" fn(AuthorizationEngineRef, AuthorizationResult) -> i32,
pub RequestInterrupt: unsafe extern "C-unwind" fn(AuthorizationEngineRef) -> i32,
pub DidDeactivate: unsafe extern "C-unwind" fn(AuthorizationEngineRef) -> i32,
pub GetContextValue: unsafe extern "C-unwind" fn(AuthorizationEngineRef, AuthorizationString, *mut AuthorizationContextFlags, *mut *const AuthorizationValue) -> i32,
pub SetContextValue: unsafe extern "C-unwind" fn(AuthorizationEngineRef, AuthorizationString, AuthorizationContextFlags, NonNull<AuthorizationValue>) -> i32,
pub GetHintValue: unsafe extern "C-unwind" fn(AuthorizationEngineRef, AuthorizationString, *mut *const AuthorizationValue) -> i32,
pub SetHintValue: unsafe extern "C-unwind" fn(AuthorizationEngineRef, AuthorizationString, NonNull<AuthorizationValue>) -> i32,
pub GetArguments: unsafe extern "C-unwind" fn(AuthorizationEngineRef, NonNull<*const AuthorizationValueVector>) -> i32,
pub GetSessionId: unsafe extern "C-unwind" fn(AuthorizationEngineRef, *mut AuthorizationSessionId) -> i32,
pub GetImmutableHintValue: unsafe extern "C-unwind" fn(AuthorizationEngineRef, AuthorizationString, *mut *const AuthorizationValue) -> i32,
pub GetLAContext: unsafe extern "C-unwind" fn(AuthorizationEngineRef, *mut *const CFType) -> i32,
pub GetTokenIdentities: unsafe extern "C-unwind" fn(AuthorizationEngineRef, NonNull<CFType>, *mut *const CFArray) -> i32,
pub GetTKTokenWatcher: unsafe extern "C-unwind" fn(AuthorizationEngineRef, *mut *const CFType) -> i32,
pub RemoveHintValue: unsafe extern "C-unwind" fn(AuthorizationEngineRef, AuthorizationString) -> i32,
pub RemoveContextValue: unsafe extern "C-unwind" fn(AuthorizationEngineRef, AuthorizationString) -> i32,
}
Authorization
and AuthorizationPlugin
only.Expand description
Callback API provided by the AuthorizationEngine.
Field: version Engine callback version. Field: SetResult Set a result after a call to AuthorizationSessionInvoke. Field: RequestInterrupt Request authorization engine to interrupt all mechamisms invoked after this mechamism has called SessionSetResult and then call AuthorizationSessionInvoke again. Field: DidDeactivate Respond to the Deactivate request. Field: GetContextValue Read value from context. AuthorizationValue does not own data. Field: SetContextValue Write value to context. AuthorizationValue and data are copied. Field: GetHintValue Read value from hints. AuthorizationValue does not own data. Field: SetHintValue Write value to hints. AuthorizationValue and data are copied. Field: GetArguments Read arguments passed. AuthorizationValueVector does not own data. Field: GetSessionId Read SessionId. Field: GetLAContext Returns LAContext which will have LACredentialCTKPIN credential set if PIN is available otherwise context without credentials is returned. LAContext can be used for operations with Tokens which would normally require PIN. Caller owns returned context and is responsible for release. Field: GetTokenIdentities Returns array of identities. Caller owns returned array and is reponsible for release. Field: GetTKTokenWatcher Returns TKTokenWatcher object. Caller owns returned context and is responsible for release. Field: RemoveContextValue Removes value from context. Field: RemoveHintValue Removes value from hints.
See also Apple’s documentation
Fields§
§version: u32
§SetResult: unsafe extern "C-unwind" fn(AuthorizationEngineRef, AuthorizationResult) -> i32
§RequestInterrupt: unsafe extern "C-unwind" fn(AuthorizationEngineRef) -> i32
§DidDeactivate: unsafe extern "C-unwind" fn(AuthorizationEngineRef) -> i32
§GetContextValue: unsafe extern "C-unwind" fn(AuthorizationEngineRef, AuthorizationString, *mut AuthorizationContextFlags, *mut *const AuthorizationValue) -> i32
§SetContextValue: unsafe extern "C-unwind" fn(AuthorizationEngineRef, AuthorizationString, AuthorizationContextFlags, NonNull<AuthorizationValue>) -> i32
§GetHintValue: unsafe extern "C-unwind" fn(AuthorizationEngineRef, AuthorizationString, *mut *const AuthorizationValue) -> i32
§SetHintValue: unsafe extern "C-unwind" fn(AuthorizationEngineRef, AuthorizationString, NonNull<AuthorizationValue>) -> i32
§GetArguments: unsafe extern "C-unwind" fn(AuthorizationEngineRef, NonNull<*const AuthorizationValueVector>) -> i32
§GetSessionId: unsafe extern "C-unwind" fn(AuthorizationEngineRef, *mut AuthorizationSessionId) -> i32
§GetImmutableHintValue: unsafe extern "C-unwind" fn(AuthorizationEngineRef, AuthorizationString, *mut *const AuthorizationValue) -> i32
§GetLAContext: unsafe extern "C-unwind" fn(AuthorizationEngineRef, *mut *const CFType) -> i32
§GetTokenIdentities: unsafe extern "C-unwind" fn(AuthorizationEngineRef, NonNull<CFType>, *mut *const CFArray) -> i32
§GetTKTokenWatcher: unsafe extern "C-unwind" fn(AuthorizationEngineRef, *mut *const CFType) -> i32
§RemoveHintValue: unsafe extern "C-unwind" fn(AuthorizationEngineRef, AuthorizationString) -> i32
§RemoveContextValue: unsafe extern "C-unwind" fn(AuthorizationEngineRef, AuthorizationString) -> i32
Trait Implementations§
Source§impl Clone for AuthorizationCallbacks
impl Clone for AuthorizationCallbacks
Source§fn clone(&self) -> AuthorizationCallbacks
fn clone(&self) -> AuthorizationCallbacks
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AuthorizationCallbacks
impl Debug for AuthorizationCallbacks
Source§impl Encode for AuthorizationCallbacks
Available on crate feature objc2
only.
impl Encode for AuthorizationCallbacks
objc2
only.Source§impl PartialEq for AuthorizationCallbacks
impl PartialEq for AuthorizationCallbacks
Source§impl RefEncode for AuthorizationCallbacks
Available on crate feature objc2
only.
impl RefEncode for AuthorizationCallbacks
objc2
only.