package vendor:darwin/LocalAuthentication

⌘K
Ctrl+K
or
/

    Index

    Constants (0)

    This section is empty.

    Procedures (108)
    Procedure Groups (1)

    Types

    AccessControlOperation ¶

    AccessControlOperation :: enum i64 {
    	CreateItem        = 0, 
    	UseItem           = 1, 
    	CreateKey         = 2, 
    	UseKeySign        = 3, 
    	UseKeyDecrypt     = 4, 
    	UseKeyKeyExchange = 5, 
    }

    AuthenticationRequirement ¶

    @(objc_superclass=NS.Object)
    AuthenticationRequirement :: struct {
    	using _: NS.Object,
    }

    Bound Objective-C Methods

    Methods Inherited From NS.Object
    Methods Inherited From NS.ObjectProtocol

    BiometryFallbackRequirement ¶

    @(objc_superclass=NS.Object)
    BiometryFallbackRequirement :: struct {
    	using _: NS.Object,
    }

    Bound Objective-C Methods

    Methods Inherited From NS.Object
    Methods Inherited From NS.ObjectProtocol

    BiometryType ¶

    BiometryType :: enum i64 {
    	None    = 0, 
    	TouchID = 1, 
    	FaceID  = 2, 
    	OpticID = 4, 
    }

    Related Procedures With Returns

    CompanionTypeFlag ¶

    CompanionTypeFlag :: enum i64 {
    	Watch  = 0, 
    	Mac    = 1, 
    	Vision = 2, 
    }

    Context ¶

    @(objc_superclass=NS.Object)
    Context :: struct {
    	using _: NS.Object,
    }

    Bound Objective-C Methods

    Methods Inherited From NS.Object
    Methods Inherited From NS.ObjectProtocol

    CredentialType ¶

    CredentialType :: enum i64 {
    	ApplicationPassword = 0, 
    	SmartCardPIN        = -3, 
    }

    Related Procedures With Parameters

    DomainState ¶

    @(objc_superclass=NS.Object)
    DomainState :: struct {
    	using _: NS.Object,
    }

    Bound Objective-C Methods

    Methods Inherited From NS.Object
    Methods Inherited From NS.ObjectProtocol

    DomainStateBiometry ¶

    @(objc_superclass=NS.Object)
    DomainStateBiometry :: struct {
    	using _: NS.Object,
    }

    Bound Objective-C Methods

    Methods Inherited From NS.Object
    Methods Inherited From NS.ObjectProtocol

    DomainStateCompanion ¶

    @(objc_superclass=NS.Object)
    DomainStateCompanion :: struct {
    	using _: NS.Object,
    }

    Bound Objective-C Methods

    Methods Inherited From NS.Object
    Methods Inherited From NS.ObjectProtocol

    Environment ¶

    @(objc_superclass=NS.Object)
    Environment :: struct {
    	using _: NS.Object,
    }

    Bound Objective-C Methods

    Methods Inherited From NS.Object
    Methods Inherited From NS.ObjectProtocol

    EnvironmentMechanism ¶

    @(objc_superclass=NS.Object)
    EnvironmentMechanism :: struct {
    	using _: NS.Object,
    }

    Bound Objective-C Methods

    Methods Inherited From NS.Object
    Methods Inherited From NS.ObjectProtocol

    EnvironmentMechanismBiometry ¶

    @(objc_superclass=EnvironmentMechanism)
    EnvironmentMechanismBiometry :: struct {
    	using _: EnvironmentMechanism,
    }

    Bound Objective-C Methods

    Methods Inherited From EnvironmentMechanism
    Methods Inherited From NS.Object
    Methods Inherited From NS.ObjectProtocol

    EnvironmentMechanismCompanion ¶

    @(objc_superclass=EnvironmentMechanism)
    EnvironmentMechanismCompanion :: struct {
    	using _: EnvironmentMechanism,
    }

    Bound Objective-C Methods

    Methods Inherited From EnvironmentMechanism
    Methods Inherited From NS.Object
    Methods Inherited From NS.ObjectProtocol

    EnvironmentMechanismUserPassword ¶

    @(objc_superclass=EnvironmentMechanism)
    EnvironmentMechanismUserPassword :: struct {
    	using _: EnvironmentMechanism,
    }

    Bound Objective-C Methods

    Methods Inherited From EnvironmentMechanism
    Methods Inherited From NS.Object
    Methods Inherited From NS.ObjectProtocol

    EnvironmentObserver ¶

    EnvironmentObserver :: struct {
    	using _: intrinsics.objc_object,
    	using _: NS.ObjectProtocol,
    }

    Bound Objective-C Methods

    Methods Inherited From NS.ObjectProtocol

    EnvironmentState ¶

    @(objc_superclass=NS.Object)
    EnvironmentState :: struct {
    	using _: NS.Object,
    	using _: NS.Copying,
    }

    Bound Objective-C Methods

    Methods Inherited From NS.Copying
    Methods Inherited From NS.Object
    Methods Inherited From NS.ObjectProtocol

    Error ¶

    Error :: enum i64 {
    	AuthenticationFailed  = -1, 
    	UserCancel            = -2, 
    	UserFallback          = -3, 
    	SystemCancel          = -4, 
    	PasscodeNotSet        = -5, 
    	TouchIDNotAvailable   = -6, 
    	TouchIDNotEnrolled    = -7, 
    	TouchIDLockout        = -8, 
    	AppCancel             = -9, 
    	InvalidContext        = -10, 
    	BiometryNotAvailable  = -6, 
    	BiometryNotEnrolled   = -7, 
    	BiometryLockout       = -8, 
    	NotInteractive        = -1004, 
    	WatchNotAvailable     = -11, 
    	CompanionNotAvailable = -11, 
    	BiometryNotPaired     = -12, 
    	BiometryDisconnected  = -13, 
    	InvalidDimensions     = -14, 
    }

    ExtendedRequirement ¶

    ExtendedRequirement :: struct {
    	using _: intrinsics.objc_object,
    }

    PersistedRight ¶

    @(objc_superclass=Right)
    PersistedRight :: struct {
    	using _: Right,
    }

    Bound Objective-C Methods

    Methods Inherited From Right
    Methods Inherited From NS.Object
    Methods Inherited From NS.ObjectProtocol

    Policy ¶

    Policy :: enum i64 {
    	DeviceOwnerAuthenticationWithBiometrics            = 1, 
    	DeviceOwnerAuthentication                          = 2, 
    	DeviceOwnerAuthenticationWithCompanion             = 3, 
    	DeviceOwnerAuthenticationWithBiometricsOrCompanion = 4, 
    	DeviceOwnerAuthenticationWithWristDetection        = 5, 
    	DeviceOwnerAuthenticationWithWatch                 = 3, 
    	DeviceOwnerAuthenticationWithBiometricsOrWatch     = 4, 
    }

    Related Procedures With Parameters

    PrivateKey ¶

    @(objc_superclass=NS.Object)
    PrivateKey :: struct {
    	using _: NS.Object,
    }

    Bound Objective-C Methods

    Methods Inherited From NS.Object
    Methods Inherited From NS.ObjectProtocol

    PublicKey ¶

    @(objc_superclass=NS.Object)
    PublicKey :: struct {
    	using _: NS.Object,
    }

    Bound Objective-C Methods

    Methods Inherited From NS.Object
    Methods Inherited From NS.ObjectProtocol
    @(objc_superclass=NS.Object)
    Right :: struct {
    	using _: NS.Object,
    }

    Bound Objective-C Methods

    Methods Inherited From NS.Object
    Methods Inherited From NS.ObjectProtocol

    RightState ¶

    RightState :: enum i64 {
    	Unknown       = 0, 
    	Authorizing   = 1, 
    	Authorized    = 2, 
    	NotAuthorized = 3, 
    }

    RightStore ¶

    @(objc_superclass=NS.Object)
    RightStore :: struct {
    	using _: NS.Object,
    }

    Bound Objective-C Methods

    Methods Inherited From NS.Object
    Methods Inherited From NS.ObjectProtocol

    Secret ¶

    @(objc_superclass=NS.Object)
    Secret :: struct {
    	using _: NS.Object,
    }

    Bound Objective-C Methods

    Methods Inherited From NS.Object
    Methods Inherited From NS.ObjectProtocol

    Constants

    This section is empty.

    Variables

    ErrorDomain ¶

    @(link_name="LAErrorDomain")
    ErrorDomain: ^NS.String

    TouchIDAuthenticationMaximumAllowableReuseDuration ¶

    @(link_name="LATouchIDAuthenticationMaximumAllowableReuseDuration")
    TouchIDAuthenticationMaximumAllowableReuseDuration: NS.TimeInterval

    Procedures

    AuthenticationRequirement_biometryCurrentSetRequirement ¶ class method

    @(objc_selector="biometryCurrentSetRequirement")
    AuthenticationRequirement_biometryCurrentSetRequirement :: proc "c" () -> ^AuthenticationRequirement ---
    authenticationRequirement := AuthenticationRequirement.biometryCurrentSetRequirement()

    AuthenticationRequirement_biometryRequirement ¶ class method

    @(objc_selector="biometryRequirement")
    AuthenticationRequirement_biometryRequirement :: proc "c" () -> ^AuthenticationRequirement ---
    authenticationRequirement := AuthenticationRequirement.biometryRequirement()

    AuthenticationRequirement_biometryRequirementWithFallback ¶ class method

    @(objc_selector="biometryRequirementWithFallback:")
    AuthenticationRequirement_biometryRequirementWithFallback :: proc "c" (fallback: ^BiometryFallbackRequirement) -> intrinsics.objc_instancetype ---
    res := AuthenticationRequirement.biometryRequirementWithFallback(fallback)

    AuthenticationRequirement_defaultRequirement ¶ class method

    @(objc_selector="defaultRequirement")
    AuthenticationRequirement_defaultRequirement :: proc "c" () -> ^AuthenticationRequirement ---
    authenticationRequirement := AuthenticationRequirement.defaultRequirement()

    BiometryFallbackRequirement_defaultRequirement ¶ class method

    @(objc_selector="defaultRequirement")
    BiometryFallbackRequirement_defaultRequirement :: proc "c" () -> ^BiometryFallbackRequirement ---
    biometryFallbackRequirement := BiometryFallbackRequirement.defaultRequirement()

    BiometryFallbackRequirement_devicePasscodeRequirement ¶ class method

    @(objc_selector="devicePasscodeRequirement")
    BiometryFallbackRequirement_devicePasscodeRequirement :: proc "c" () -> ^BiometryFallbackRequirement ---
    biometryFallbackRequirement := BiometryFallbackRequirement.devicePasscodeRequirement()

    Context_biometryType ¶

    @(objc_selector="biometryType")
    Context_biometryType :: proc "c" (self: ^Context) -> BiometryType ---
    biometryType := self->biometryType()

    Context_canEvaluatePolicy ¶

    Context_canEvaluatePolicy :: proc "c" (
    	self:   ^Context, 
    	policy: Policy, 
    ) -> (ok: bool, err: ^NS.Error) {…}
    ok, err := self->canEvaluatePolicy(policy)

    Context_canEvaluatePolicy_error ¶

    @(objc_selector="canEvaluatePolicy:error:")
    Context_canEvaluatePolicy_error :: proc "c" (
    	self:   ^Context, 
    	policy: Policy, 
    	error:  ^^NS.Error, 
    ) -> bool ---
    res := self->canEvaluatePolicy_error(policy, error)

    Context_domainState ¶

    @(objc_selector="domainState")
    Context_domainState :: proc "c" (self: ^Context) -> ^DomainState ---
    domainState := self->domainState()

    Context_evaluateAccessControl ¶

    @(objc_selector="evaluateAccessControl:operation:localizedReason:reply:")
    Context_evaluateAccessControl :: proc "c" (
    	self:            ^Context, 
    	accessControl:   darwin_Security.SecAccessControlRef, 
    	operation:       AccessControlOperation, 
    	localizedReason: ^NS.String, 
    	reply:           ^runtime.Objc_Block($T=proc "cdecl" (bool, ^Error)), 
    ) ---
    self->evaluateAccessControl(accessControl, operation, localizedReason, reply)

    Context_evaluatePolicy ¶

    @(objc_selector="evaluatePolicy:localizedReason:reply:")
    Context_evaluatePolicy :: proc "c" (
    	self:            ^Context, 
    	policy:          Policy, 
    	localizedReason: ^NS.String, 
    	reply:           ^runtime.Objc_Block($T=proc "cdecl" (bool, ^Error)), 
    ) ---
    self->evaluatePolicy(policy, localizedReason, reply)

    Context_evaluatedPolicyDomainState ¶

    @(objc_selector="evaluatedPolicyDomainState")
    Context_evaluatedPolicyDomainState :: proc "c" (self: ^Context) -> ^NS.Data ---
    evaluatedPolicyDomainState := self->evaluatedPolicyDomainState()

    Context_interactionNotAllowed ¶

    @(objc_selector="interactionNotAllowed")
    Context_interactionNotAllowed :: proc "c" (self: ^Context) -> bool ---
    interactionNotAllowed := self->interactionNotAllowed()

    Context_invalidate ¶

    @(objc_selector="invalidate")
    Context_invalidate :: proc "c" (self: ^Context) ---
    self->invalidate()

    Context_isCredentialSet ¶

    @(objc_selector="isCredentialSet:")
    Context_isCredentialSet :: proc "c" (self: ^Context, type: CredentialType) -> bool ---
    res := self->isCredentialSet(type)

    Context_localizedCancelTitle ¶

    @(objc_selector="localizedCancelTitle")
    Context_localizedCancelTitle :: proc "c" (self: ^Context) -> ^NS.String ---
    localizedCancelTitle := self->localizedCancelTitle()

    Context_localizedFallbackTitle ¶

    @(objc_selector="localizedFallbackTitle")
    Context_localizedFallbackTitle :: proc "c" (self: ^Context) -> ^NS.String ---
    localizedFallbackTitle := self->localizedFallbackTitle()

    Context_localizedReason ¶

    @(objc_selector="localizedReason")
    Context_localizedReason :: proc "c" (self: ^Context) -> ^NS.String ---
    localizedReason := self->localizedReason()

    Context_maxBiometryFailures ¶

    @(objc_selector="maxBiometryFailures")
    Context_maxBiometryFailures :: proc "c" (self: ^Context) -> ^NS.Number ---
    maxBiometryFailures := self->maxBiometryFailures()

    Context_setCredential ¶

    @(objc_selector="setCredential:type:")
    Context_setCredential :: proc "c" (
    	self:       ^Context, 
    	credential: ^NS.Data, 
    	type:       CredentialType, 
    ) -> bool ---
    res := self->setCredential(credential, type)

    Context_setInteractionNotAllowed ¶

    @(objc_selector="setInteractionNotAllowed:")
    Context_setInteractionNotAllowed :: proc "c" (self: ^Context, interactionNotAllowed: bool) ---
    self->setInteractionNotAllowed(interactionNotAllowed)

    Context_setLocalizedCancelTitle ¶

    @(objc_selector="setLocalizedCancelTitle:")
    Context_setLocalizedCancelTitle :: proc "c" (self: ^Context, localizedCancelTitle: ^NS.String) ---
    self->setLocalizedCancelTitle(localizedCancelTitle)

    Context_setLocalizedFallbackTitle ¶

    @(objc_selector="setLocalizedFallbackTitle:")
    Context_setLocalizedFallbackTitle :: proc "c" (
    	self:                   ^Context, 
    	localizedFallbackTitle: ^NS.String, 
    ) ---
    self->setLocalizedFallbackTitle(localizedFallbackTitle)

    Context_setLocalizedReason ¶

    @(objc_selector="setLocalizedReason:")
    Context_setLocalizedReason :: proc "c" (self: ^Context, localizedReason: ^NS.String) ---
    self->setLocalizedReason(localizedReason)

    Context_setMaxBiometryFailures ¶

    @(objc_selector="setMaxBiometryFailures:")
    Context_setMaxBiometryFailures :: proc "c" (self: ^Context, maxBiometryFailures: ^NS.Number) ---
    self->setMaxBiometryFailures(maxBiometryFailures)

    Context_setTouchIDAuthenticationAllowableReuseDuration ¶

    @(objc_selector="setTouchIDAuthenticationAllowableReuseDuration:")
    Context_setTouchIDAuthenticationAllowableReuseDuration :: proc "c" (
    	self:                                        ^Context, 
    	touchIDAuthenticationAllowableReuseDuration: NS.TimeInterval, 
    ) ---
    self->setTouchIDAuthenticationAllowableReuseDuration(touchIDAuthenticationAllowableReuseDuration)

    Context_touchIDAuthenticationAllowableReuseDuration ¶

    @(objc_selector="touchIDAuthenticationAllowableReuseDuration")
    Context_touchIDAuthenticationAllowableReuseDuration :: proc "c" (self: ^Context) -> NS.TimeInterval ---
    touchIDAuthenticationAllowableReuseDuration := self->touchIDAuthenticationAllowableReuseDuration()

    DomainStateBiometry_biometryType ¶

    @(objc_selector="biometryType")
    DomainStateBiometry_biometryType :: proc "c" (self: ^DomainStateBiometry) -> BiometryType ---
    biometryType := domainStateBiometry->biometryType()

    DomainStateBiometry_init ¶

    @(objc_selector="init")
    DomainStateBiometry_init :: proc "c" (self: ^DomainStateBiometry) -> intrinsics.objc_instancetype ---
    res := domainStateBiometry->init()

    DomainStateBiometry_new ¶ class method owned

    @(objc_selector="new")
    DomainStateBiometry_new :: proc "c" () -> ^DomainStateBiometry ---
    domainStateBiometry := DomainStateBiometry.new()

    DomainStateBiometry_stateHash ¶

    @(objc_selector="stateHash")
    DomainStateBiometry_stateHash :: proc "c" (self: ^DomainStateBiometry) -> ^NS.Data ---
    stateHash := domainStateBiometry->stateHash()

    DomainStateCompanion_availableCompanionTypes ¶

    @(objc_selector="availableCompanionTypes")
    DomainStateCompanion_availableCompanionTypes :: proc "c" (self: ^DomainStateCompanion) -> ^NS.Set ---
    availableCompanionTypes := domainStateCompanion->availableCompanionTypes()

    DomainStateCompanion_init ¶

    @(objc_selector="init")
    DomainStateCompanion_init :: proc "c" (self: ^DomainStateCompanion) -> intrinsics.objc_instancetype ---
    res := domainStateCompanion->init()

    DomainStateCompanion_new ¶ class method owned

    @(objc_selector="new")
    DomainStateCompanion_new :: proc "c" () -> ^DomainStateCompanion ---
    domainStateCompanion := DomainStateCompanion.new()

    DomainStateCompanion_stateHash ¶

    @(objc_selector="stateHash")
    DomainStateCompanion_stateHash :: proc "c" (self: ^DomainStateCompanion) -> ^NS.Data ---
    stateHash := domainStateCompanion->stateHash()

    DomainStateCompanion_stateHashForCompanionType ¶

    @(objc_selector="stateHashForCompanionType:")
    DomainStateCompanion_stateHashForCompanionType :: proc "c" (
    	self:          ^DomainStateCompanion, 
    	companionType: bit_set[CompanionTypeFlag; i64], 
    ) -> ^NS.Data ---
    data := domainStateCompanion->stateHashForCompanionType(companionType)

    DomainState_biometry ¶

    @(objc_selector="biometry")
    DomainState_biometry :: proc "c" (self: ^DomainState) -> ^DomainStateBiometry ---
    biometry := domainState->biometry()

    DomainState_companion ¶

    @(objc_selector="companion")
    DomainState_companion :: proc "c" (self: ^DomainState) -> ^DomainStateCompanion ---
    companion := domainState->companion()

    DomainState_init ¶

    @(objc_selector="init")
    DomainState_init :: proc "c" (self: ^DomainState) -> intrinsics.objc_instancetype ---
    res := domainState->init()

    DomainState_new ¶ class method owned

    @(objc_selector="new")
    DomainState_new :: proc "c" () -> ^DomainState ---
    domainState := DomainState.new()

    DomainState_stateHash ¶

    @(objc_selector="stateHash")
    DomainState_stateHash :: proc "c" (self: ^DomainState) -> ^NS.Data ---
    stateHash := domainState->stateHash()

    EnvironmentMechanismBiometry_biometryType ¶

    @(objc_selector="biometryType")
    EnvironmentMechanismBiometry_biometryType :: proc "c" (self: ^EnvironmentMechanismBiometry) -> BiometryType ---
    biometryType := environmentMechanismBiometry->biometryType()

    EnvironmentMechanismBiometry_builtInSensorInaccessible ¶

    @(objc_selector="builtInSensorInaccessible")
    EnvironmentMechanismBiometry_builtInSensorInaccessible :: proc "c" (self: ^EnvironmentMechanismBiometry) -> bool ---
    builtInSensorInaccessible := environmentMechanismBiometry->builtInSensorInaccessible()

    EnvironmentMechanismBiometry_isEnrolled ¶

    @(objc_selector="isEnrolled")
    EnvironmentMechanismBiometry_isEnrolled :: proc "c" (self: ^EnvironmentMechanismBiometry) -> bool ---
    isEnrolled := environmentMechanismBiometry->isEnrolled()

    EnvironmentMechanismBiometry_isLockedOut ¶

    @(objc_selector="isLockedOut")
    EnvironmentMechanismBiometry_isLockedOut :: proc "c" (self: ^EnvironmentMechanismBiometry) -> bool ---
    isLockedOut := environmentMechanismBiometry->isLockedOut()

    EnvironmentMechanismBiometry_stateHash ¶

    @(objc_selector="stateHash")
    EnvironmentMechanismBiometry_stateHash :: proc "c" (self: ^EnvironmentMechanismBiometry) -> ^NS.Data ---
    stateHash := environmentMechanismBiometry->stateHash()

    EnvironmentMechanismCompanion_stateHash ¶

    @(objc_selector="stateHash")
    EnvironmentMechanismCompanion_stateHash :: proc "c" (self: ^EnvironmentMechanismCompanion) -> ^NS.Data ---
    stateHash := environmentMechanismCompanion->stateHash()

    EnvironmentMechanismCompanion_type ¶

    @(objc_selector="type")
    EnvironmentMechanismCompanion_type :: proc "c" (self: ^EnvironmentMechanismCompanion) -> bit_set[CompanionTypeFlag; i64] ---
    type := environmentMechanismCompanion->type()

    EnvironmentMechanismUserPassword_isSet ¶

    @(objc_selector="isSet")
    EnvironmentMechanismUserPassword_isSet :: proc "c" (self: ^EnvironmentMechanismUserPassword) -> bool ---
    isSet := environmentMechanismUserPassword->isSet()

    EnvironmentMechanism_iconSystemName ¶

    @(objc_selector="iconSystemName")
    EnvironmentMechanism_iconSystemName :: proc "c" (self: ^EnvironmentMechanism) -> ^NS.String ---
    iconSystemName := environmentMechanism->iconSystemName()

    EnvironmentMechanism_init ¶

    @(objc_selector="init")
    EnvironmentMechanism_init :: proc "c" (self: ^EnvironmentMechanism) -> intrinsics.objc_instancetype ---
    res := environmentMechanism->init()

    EnvironmentMechanism_isUsable ¶

    @(objc_selector="isUsable")
    EnvironmentMechanism_isUsable :: proc "c" (self: ^EnvironmentMechanism) -> bool ---
    isUsable := environmentMechanism->isUsable()

    EnvironmentMechanism_localizedName ¶

    @(objc_selector="localizedName")
    EnvironmentMechanism_localizedName :: proc "c" (self: ^EnvironmentMechanism) -> ^NS.String ---
    localizedName := environmentMechanism->localizedName()

    EnvironmentMechanism_new ¶ class method owned

    @(objc_selector="new")
    EnvironmentMechanism_new :: proc "c" () -> ^EnvironmentMechanism ---
    environmentMechanism := EnvironmentMechanism.new()

    EnvironmentObserver_environment ¶

    @(objc_selector="environment:stateDidChangeFromOldState:")
    EnvironmentObserver_environment :: proc "c" (
    	self:        ^EnvironmentObserver, 
    	environment: ^Environment, 
    	oldState:    ^EnvironmentState, 
    ) ---
    environmentObserver->environment(environment, oldState)

    EnvironmentState_allMechanisms ¶

    @(objc_selector="allMechanisms")
    EnvironmentState_allMechanisms :: proc "c" (self: ^EnvironmentState) -> ^NS.Array ---
    allMechanisms := environmentState->allMechanisms()

    EnvironmentState_biometry ¶

    @(objc_selector="biometry")
    EnvironmentState_biometry :: proc "c" (self: ^EnvironmentState) -> ^EnvironmentMechanismBiometry ---
    biometry := environmentState->biometry()

    EnvironmentState_companions ¶

    @(objc_selector="companions")
    EnvironmentState_companions :: proc "c" (self: ^EnvironmentState) -> ^NS.Array ---
    companions := environmentState->companions()

    EnvironmentState_init ¶

    @(objc_selector="init")
    EnvironmentState_init :: proc "c" (self: ^EnvironmentState) -> intrinsics.objc_instancetype ---
    res := environmentState->init()

    EnvironmentState_new ¶ class method owned

    @(objc_selector="new")
    EnvironmentState_new :: proc "c" () -> ^EnvironmentState ---
    environmentState := EnvironmentState.new()

    EnvironmentState_userPassword ¶

    @(objc_selector="userPassword")
    EnvironmentState_userPassword :: proc "c" (self: ^EnvironmentState) -> ^EnvironmentMechanismUserPassword ---
    userPassword := environmentState->userPassword()

    Environment_addObserver ¶

    @(objc_selector="addObserver:")
    Environment_addObserver :: proc "c" (self: ^Environment, observer: ^EnvironmentObserver) ---
    environment->addObserver(observer)

    Environment_currentUser ¶ class method

    @(objc_selector="currentUser")
    Environment_currentUser :: proc "c" () -> ^Environment ---
    environment := Environment.currentUser()

    Environment_init ¶

    @(objc_selector="init")
    Environment_init :: proc "c" (self: ^Environment) -> intrinsics.objc_instancetype ---
    res := environment->init()

    Environment_new ¶ class method owned

    @(objc_selector="new")
    Environment_new :: proc "c" () -> ^Environment ---
    environment := Environment.new()

    Environment_removeObserver ¶

    @(objc_selector="removeObserver:")
    Environment_removeObserver :: proc "c" (self: ^Environment, observer: ^EnvironmentObserver) ---
    environment->removeObserver(observer)

    Environment_state ¶

    @(objc_selector="state")
    Environment_state :: proc "c" (self: ^Environment) -> ^EnvironmentState ---
    state := environment->state()

    PersistedRight_init ¶

    @(objc_selector="init")
    PersistedRight_init :: proc "c" (self: ^PersistedRight) -> intrinsics.objc_instancetype ---
    res := persistedRight->init()

    PersistedRight_key ¶

    @(objc_selector="key")
    PersistedRight_key :: proc "c" (self: ^PersistedRight) -> ^PrivateKey ---
    key := persistedRight->key()

    PersistedRight_new ¶ class method owned

    @(objc_selector="new")
    PersistedRight_new :: proc "c" () -> ^PersistedRight ---
    persistedRight := PersistedRight.new()

    PersistedRight_secret ¶

    @(objc_selector="secret")
    PersistedRight_secret :: proc "c" (self: ^PersistedRight) -> ^Secret ---
    secret := persistedRight->secret()

    PrivateKey_canDecryptUsingSecKeyAlgorithm ¶

    @(objc_selector="canDecryptUsingSecKeyAlgorithm:")
    PrivateKey_canDecryptUsingSecKeyAlgorithm :: proc "c" (
    	self:      ^PrivateKey, 
    	algorithm: darwin_Security.SecKeyAlgorithm, 
    ) -> bool ---
    res := privateKey->canDecryptUsingSecKeyAlgorithm(algorithm)

    PrivateKey_canExchangeKeysUsingSecKeyAlgorithm ¶

    @(objc_selector="canExchangeKeysUsingSecKeyAlgorithm:")
    PrivateKey_canExchangeKeysUsingSecKeyAlgorithm :: proc "c" (
    	self:      ^PrivateKey, 
    	algorithm: darwin_Security.SecKeyAlgorithm, 
    ) -> bool ---
    res := privateKey->canExchangeKeysUsingSecKeyAlgorithm(algorithm)

    PrivateKey_canSignUsingSecKeyAlgorithm ¶

    @(objc_selector="canSignUsingSecKeyAlgorithm:")
    PrivateKey_canSignUsingSecKeyAlgorithm :: proc "c" (
    	self:      ^PrivateKey, 
    	algorithm: darwin_Security.SecKeyAlgorithm, 
    ) -> bool ---
    res := privateKey->canSignUsingSecKeyAlgorithm(algorithm)

    PrivateKey_decryptData ¶

    @(objc_selector="decryptData:secKeyAlgorithm:completion:")
    PrivateKey_decryptData :: proc "c" (
    	self:      ^PrivateKey, 
    	data:      ^NS.Data, 
    	algorithm: darwin_Security.SecKeyAlgorithm, 
    	handler:   ^runtime.Objc_Block($T=proc "cdecl" (^Data, ^Error)), 
    ) ---
    privateKey->decryptData(data, algorithm, handler)

    PrivateKey_exchangeKeysWithPublicKey ¶

    @(objc_selector="exchangeKeysWithPublicKey:secKeyAlgorithm:secKeyParameters:completion:")
    PrivateKey_exchangeKeysWithPublicKey :: proc "c" (
    	self:       ^PrivateKey, 
    	publicKey:  ^NS.Data, 
    	algorithm:  darwin_Security.SecKeyAlgorithm, 
    	parameters: ^NS.Dictionary, 
    	handler:    ^runtime.Objc_Block($T=proc "cdecl" (^Data, ^Error)), 
    ) ---
    privateKey->exchangeKeysWithPublicKey(publicKey, algorithm, parameters, handler)

    PrivateKey_init ¶

    @(objc_selector="init")
    PrivateKey_init :: proc "c" (self: ^PrivateKey) -> intrinsics.objc_instancetype ---
    res := privateKey->init()

    PrivateKey_new ¶ class method owned

    @(objc_selector="new")
    PrivateKey_new :: proc "c" () -> ^PrivateKey ---
    privateKey := PrivateKey.new()

    PrivateKey_publicKey ¶

    @(objc_selector="publicKey")
    PrivateKey_publicKey :: proc "c" (self: ^PrivateKey) -> ^PublicKey ---
    publicKey := privateKey->publicKey()

    PrivateKey_signData ¶

    @(objc_selector="signData:secKeyAlgorithm:completion:")
    PrivateKey_signData :: proc "c" (
    	self:      ^PrivateKey, 
    	data:      ^NS.Data, 
    	algorithm: darwin_Security.SecKeyAlgorithm, 
    	handler:   ^runtime.Objc_Block($T=proc "cdecl" (^Data, ^Error)), 
    ) ---
    privateKey->signData(data, algorithm, handler)

    PublicKey_canEncryptUsingSecKeyAlgorithm ¶

    @(objc_selector="canEncryptUsingSecKeyAlgorithm:")
    PublicKey_canEncryptUsingSecKeyAlgorithm :: proc "c" (
    	self:      ^PublicKey, 
    	algorithm: darwin_Security.SecKeyAlgorithm, 
    ) -> bool ---
    res := publicKey->canEncryptUsingSecKeyAlgorithm(algorithm)

    PublicKey_canVerifyUsingSecKeyAlgorithm ¶

    @(objc_selector="canVerifyUsingSecKeyAlgorithm:")
    PublicKey_canVerifyUsingSecKeyAlgorithm :: proc "c" (
    	self:      ^PublicKey, 
    	algorithm: darwin_Security.SecKeyAlgorithm, 
    ) -> bool ---
    res := publicKey->canVerifyUsingSecKeyAlgorithm(algorithm)

    PublicKey_encryptData ¶

    @(objc_selector="encryptData:secKeyAlgorithm:completion:")
    PublicKey_encryptData :: proc "c" (
    	self:      ^PublicKey, 
    	data:      ^NS.Data, 
    	algorithm: darwin_Security.SecKeyAlgorithm, 
    	handler:   ^runtime.Objc_Block($T=proc "cdecl" (^Data, ^Error)), 
    ) ---
    publicKey->encryptData(data, algorithm, handler)

    PublicKey_exportBytesWithCompletion ¶

    @(objc_selector="exportBytesWithCompletion:")
    PublicKey_exportBytesWithCompletion :: proc "c" (
    	self:    ^PublicKey, 
    	handler: ^runtime.Objc_Block($T=proc "cdecl" (^Data, ^Error)), 
    ) ---
    publicKey->exportBytesWithCompletion(handler)

    PublicKey_init ¶

    @(objc_selector="init")
    PublicKey_init :: proc "c" (self: ^PublicKey) -> intrinsics.objc_instancetype ---
    res := publicKey->init()

    PublicKey_new ¶ class method owned

    @(objc_selector="new")
    PublicKey_new :: proc "c" () -> ^PublicKey ---
    publicKey := PublicKey.new()

    PublicKey_verifyData ¶

    @(objc_selector="verifyData:signature:secKeyAlgorithm:completion:")
    PublicKey_verifyData :: proc "c" (
    	self:       ^PublicKey, 
    	signedData: ^NS.Data, 
    	signature:  ^NS.Data, 
    	algorithm:  darwin_Security.SecKeyAlgorithm, 
    	handler:    ^runtime.Objc_Block($T=proc "cdecl" (^Error)), 
    ) ---
    publicKey->verifyData(signedData, signature, algorithm, handler)

    RightStore_init ¶

    @(objc_selector="init")
    RightStore_init :: proc "c" (self: ^RightStore) -> intrinsics.objc_instancetype ---
    res := rightStore->init()

    RightStore_new ¶ class method owned

    @(objc_selector="new")
    RightStore_new :: proc "c" () -> ^RightStore ---
    rightStore := RightStore.new()

    RightStore_removeAllRightsWithCompletion ¶

    @(objc_selector="removeAllRightsWithCompletion:")
    RightStore_removeAllRightsWithCompletion :: proc "c" (
    	self:    ^RightStore, 
    	handler: ^runtime.Objc_Block($T=proc "cdecl" (^Error)), 
    ) ---
    rightStore->removeAllRightsWithCompletion(handler)

    RightStore_removeRight ¶

    @(objc_selector="removeRight:completion:")
    RightStore_removeRight :: proc "c" (
    	self:    ^RightStore, 
    	right:   ^PersistedRight, 
    	handler: ^runtime.Objc_Block($T=proc "cdecl" (^Error)), 
    ) ---
    rightStore->removeRight(right, handler)

    RightStore_removeRightForIdentifier ¶

    @(objc_selector="removeRightForIdentifier:completion:")
    RightStore_removeRightForIdentifier :: proc "c" (
    	self:       ^RightStore, 
    	identifier: ^NS.String, 
    	handler:    ^runtime.Objc_Block($T=proc "cdecl" (^Error)), 
    ) ---
    rightStore->removeRightForIdentifier(identifier, handler)

    RightStore_rightForIdentifier ¶

    @(objc_selector="rightForIdentifier:completion:")
    RightStore_rightForIdentifier :: proc "c" (
    	self:       ^RightStore, 
    	identifier: ^NS.String, 
    	handler:    ^runtime.Objc_Block($T=proc "cdecl" (^PersistedRight, ^Error)), 
    ) ---
    rightStore->rightForIdentifier(identifier, handler)

    RightStore_saveRight_identifier_completion ¶

    @(objc_selector="saveRight:identifier:completion:")
    RightStore_saveRight_identifier_completion :: proc "c" (
    	self:       ^RightStore, 
    	right:      ^Right, 
    	identifier: ^NS.String, 
    	handler:    ^runtime.Objc_Block($T=proc "cdecl" (^PersistedRight, ^Error)), 
    ) ---
    rightStore->saveRight_identifier_completion(right, identifier, handler)

    RightStore_saveRight_identifier_secret_completion ¶

    @(objc_selector="saveRight:identifier:secret:completion:")
    RightStore_saveRight_identifier_secret_completion :: proc "c" (
    	self:       ^RightStore, 
    	right:      ^Right, 
    	identifier: ^NS.String, 
    	secret:     ^NS.Data, 
    	handler:    ^runtime.Objc_Block($T=proc "cdecl" (^PersistedRight, ^Error)), 
    ) ---
    rightStore->saveRight_identifier_secret_completion(right, identifier, secret, handler)

    RightStore_sharedStore ¶ class method

    @(objc_selector="sharedStore")
    RightStore_sharedStore :: proc "c" () -> ^RightStore ---
    rightStore := RightStore.sharedStore()

    Right_authorizeWithLocalizedReason ¶

    @(objc_selector="authorizeWithLocalizedReason:completion:")
    Right_authorizeWithLocalizedReason :: proc "c" (
    	self:            ^Right, 
    	localizedReason: ^NS.String, 
    	handler:         ^runtime.Objc_Block($T=proc "cdecl" (^Error)), 
    ) ---
    right->authorizeWithLocalizedReason(localizedReason, handler)

    Right_checkCanAuthorizeWithCompletion ¶

    @(objc_selector="checkCanAuthorizeWithCompletion:")
    Right_checkCanAuthorizeWithCompletion :: proc "c" (
    	self:    ^Right, 
    	handler: ^runtime.Objc_Block($T=proc "cdecl" (^Error)), 
    ) ---
    right->checkCanAuthorizeWithCompletion(handler)

    Right_deauthorizeWithCompletion ¶

    @(objc_selector="deauthorizeWithCompletion:")
    Right_deauthorizeWithCompletion :: proc "c" (
    	self:    ^Right, 
    	handler: ^runtime.Objc_Block($T=proc "cdecl" ()), 
    ) ---
    right->deauthorizeWithCompletion(handler)

    Right_init ¶

    @(objc_selector="init")
    Right_init :: proc "c" (self: ^Right) -> intrinsics.objc_instancetype ---
    res := right->init()

    Right_initWithRequirement ¶

    @(objc_selector="initWithRequirement:")
    Right_initWithRequirement :: proc "c" (
    	self:        ^Right, 
    	requirement: ^AuthenticationRequirement, 
    ) -> intrinsics.objc_instancetype ---
    res := right->initWithRequirement(requirement)

    Right_setTag ¶

    @(objc_selector="setTag:")
    Right_setTag :: proc "c" (self: ^Right, tag: NS.Integer) ---
    right->setTag(tag)

    Right_state ¶

    @(objc_selector="state")
    Right_state :: proc "c" (self: ^Right) -> RightState ---
    state := right->state()

    Right_tag ¶

    @(objc_selector="tag")
    Right_tag :: proc "c" (self: ^Right) -> NS.Integer ---
    tag := right->tag()

    Secret_init ¶

    @(objc_selector="init")
    Secret_init :: proc "c" (self: ^Secret) -> intrinsics.objc_instancetype ---
    res := secret->init()

    Secret_loadDataWithCompletion ¶

    @(objc_selector="loadDataWithCompletion:")
    Secret_loadDataWithCompletion :: proc "c" (
    	self:    ^Secret, 
    	handler: ^runtime.Objc_Block($T=proc "cdecl" (^Data, ^Error)), 
    ) ---
    secret->loadDataWithCompletion(handler)

    Secret_new ¶ class method owned

    @(objc_selector="new")
    Secret_new :: proc "c" () -> ^Secret ---
    secret := Secret.new()

    Procedure Groups

    RightStore_saveRight ¶ overloaded

    RightStore_saveRight :: proc{
    	RightStore_saveRight_identifier_completion,
    	RightStore_saveRight_identifier_secret_completion,
    }
    
    rightStore->saveRight(right, identifier, handler)
    rightStore->saveRight(right, identifier, secret, handler)

    Source Files

    Generation Information

    Generated with odin version dev-2026-11 (vendor "odin") Windows_amd64 @ 2026-11-28 21:05:09.772358800 +0000 UTC