objc2_authentication_services/generated/
ASAuthorizationSingleSignOnCredential.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
12 #[derive(Debug, PartialEq, Eq, Hash)]
13 pub struct ASAuthorizationSingleSignOnCredential;
14);
15
16#[cfg(feature = "ASAuthorizationCredential")]
17extern_conformance!(
18 unsafe impl ASAuthorizationCredential for ASAuthorizationSingleSignOnCredential {}
19);
20
21extern_conformance!(
22 unsafe impl NSCoding for ASAuthorizationSingleSignOnCredential {}
23);
24
25extern_conformance!(
26 unsafe impl NSCopying for ASAuthorizationSingleSignOnCredential {}
27);
28
29unsafe impl CopyingHelper for ASAuthorizationSingleSignOnCredential {
30 type Result = Self;
31}
32
33extern_conformance!(
34 unsafe impl NSObjectProtocol for ASAuthorizationSingleSignOnCredential {}
35);
36
37extern_conformance!(
38 unsafe impl NSSecureCoding for ASAuthorizationSingleSignOnCredential {}
39);
40
41impl ASAuthorizationSingleSignOnCredential {
42 extern_methods!(
43 #[unsafe(method(state))]
45 #[unsafe(method_family = none)]
46 pub unsafe fn state(&self) -> Option<Retained<NSString>>;
47
48 #[unsafe(method(accessToken))]
50 #[unsafe(method_family = none)]
51 pub unsafe fn accessToken(&self) -> Option<Retained<NSData>>;
52
53 #[unsafe(method(identityToken))]
55 #[unsafe(method_family = none)]
56 pub unsafe fn identityToken(&self) -> Option<Retained<NSData>>;
57
58 #[cfg(feature = "ASAuthorization")]
59 #[unsafe(method(authorizedScopes))]
63 #[unsafe(method_family = none)]
64 pub unsafe fn authorizedScopes(&self) -> Retained<NSArray<ASAuthorizationScope>>;
65
66 #[unsafe(method(authenticatedResponse))]
70 #[unsafe(method_family = none)]
71 pub unsafe fn authenticatedResponse(&self) -> Option<Retained<NSHTTPURLResponse>>;
72
73 #[unsafe(method(privateKeys))]
75 #[unsafe(method_family = none)]
76 pub unsafe fn privateKeys(&self) -> Retained<NSArray>;
77
78 #[unsafe(method(new))]
79 #[unsafe(method_family = new)]
80 pub unsafe fn new() -> Retained<Self>;
81
82 #[unsafe(method(init))]
83 #[unsafe(method_family = init)]
84 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
85 );
86}