objc2_authentication_services/generated/
ASAuthorizationWebBrowserPlatformPublicKeyCredential.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/authenticationservices/asauthorizationwebbrowserplatformpublickeycredential?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct ASAuthorizationWebBrowserPlatformPublicKeyCredential;
14);
15
16extern_conformance!(
17    unsafe impl NSObjectProtocol for ASAuthorizationWebBrowserPlatformPublicKeyCredential {}
18);
19
20impl ASAuthorizationWebBrowserPlatformPublicKeyCredential {
21    extern_methods!(
22        #[unsafe(method(new))]
23        #[unsafe(method_family = new)]
24        pub unsafe fn new() -> Retained<Self>;
25
26        #[unsafe(method(init))]
27        #[unsafe(method_family = init)]
28        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
29
30        /// The user name of the saved credential.
31        #[unsafe(method(name))]
32        #[unsafe(method_family = none)]
33        pub unsafe fn name(&self) -> Retained<NSString>;
34
35        /// A user-specified title for the credential.
36        #[unsafe(method(customTitle))]
37        #[unsafe(method_family = none)]
38        pub unsafe fn customTitle(&self) -> Option<Retained<NSString>>;
39
40        /// The "relying party" (generally website) the credential was saved for.
41        #[unsafe(method(relyingParty))]
42        #[unsafe(method_family = none)]
43        pub unsafe fn relyingParty(&self) -> Retained<NSString>;
44
45        /// A unique identifier for this credential.
46        #[unsafe(method(credentialID))]
47        #[unsafe(method_family = none)]
48        pub unsafe fn credentialID(&self) -> Retained<NSData>;
49
50        /// A unique identifier for the user account associated with this credential. One account may have multiple associated credentials.
51        #[unsafe(method(userHandle))]
52        #[unsafe(method_family = none)]
53        pub unsafe fn userHandle(&self) -> Retained<NSData>;
54
55        /// The localized name of the credential provider that provided this passkey, either the name of a third party app or "iCloud Keychain".
56        #[unsafe(method(providerName))]
57        #[unsafe(method_family = none)]
58        pub unsafe fn providerName(&self) -> Retained<NSString>;
59    );
60}