objc2-authentication-services 0.3.2

Bindings to the AuthenticationServices framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_protocol!(
    /// [Apple's documentation](https://developer.apple.com/documentation/authenticationservices/asauthorizationpublickeycredentialassertion?language=objc)
    #[cfg(all(
        feature = "ASAuthorizationCredential",
        feature = "ASPublicKeyCredential"
    ))]
    pub unsafe trait ASAuthorizationPublicKeyCredentialAssertion:
        ASPublicKeyCredential
    {
        /// A byte sequence containing the encoded authenticatorData blob returned by the authenticator.
        #[unsafe(method(rawAuthenticatorData))]
        #[unsafe(method_family = none)]
        unsafe fn rawAuthenticatorData(&self) -> Retained<NSData>;

        /// The userID provided when creating this credential.
        #[unsafe(method(userID))]
        #[unsafe(method_family = none)]
        unsafe fn userID(&self) -> Retained<NSData>;

        /// The signature provided by the authenticator using the credential's private key.
        #[unsafe(method(signature))]
        #[unsafe(method_family = none)]
        unsafe fn signature(&self) -> Retained<NSData>;
    }
);