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!(
    /// The base protocol for all PublicKeyCredential credential types.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/authenticationservices/aspublickeycredential?language=objc)
    #[cfg(feature = "ASAuthorizationCredential")]
    pub unsafe trait ASPublicKeyCredential: ASAuthorizationCredential {
        /// A byte sequence containing the serialized clientDataJSON blob returned by the authenticator.
        #[unsafe(method(rawClientDataJSON))]
        #[unsafe(method_family = none)]
        unsafe fn rawClientDataJSON(&self) -> Retained<NSData>;

        /// An identifier that uniquely identifies this credential.
        #[unsafe(method(credentialID))]
        #[unsafe(method_family = none)]
        unsafe fn credentialID(&self) -> Retained<NSData>;
    }
);