use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct ASAuthorizationSingleSignOnCredential;
);
#[cfg(feature = "ASAuthorizationCredential")]
extern_conformance!(
unsafe impl ASAuthorizationCredential for ASAuthorizationSingleSignOnCredential {}
);
extern_conformance!(
unsafe impl NSCoding for ASAuthorizationSingleSignOnCredential {}
);
extern_conformance!(
unsafe impl NSCopying for ASAuthorizationSingleSignOnCredential {}
);
unsafe impl CopyingHelper for ASAuthorizationSingleSignOnCredential {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for ASAuthorizationSingleSignOnCredential {}
);
extern_conformance!(
unsafe impl NSSecureCoding for ASAuthorizationSingleSignOnCredential {}
);
impl ASAuthorizationSingleSignOnCredential {
extern_methods!(
#[unsafe(method(state))]
#[unsafe(method_family = none)]
pub unsafe fn state(&self) -> Option<Retained<NSString>>;
#[unsafe(method(accessToken))]
#[unsafe(method_family = none)]
pub unsafe fn accessToken(&self) -> Option<Retained<NSData>>;
#[unsafe(method(identityToken))]
#[unsafe(method_family = none)]
pub unsafe fn identityToken(&self) -> Option<Retained<NSData>>;
#[cfg(feature = "ASAuthorization")]
#[unsafe(method(authorizedScopes))]
#[unsafe(method_family = none)]
pub unsafe fn authorizedScopes(&self) -> Retained<NSArray<ASAuthorizationScope>>;
#[unsafe(method(authenticatedResponse))]
#[unsafe(method_family = none)]
pub unsafe fn authenticatedResponse(&self) -> Option<Retained<NSHTTPURLResponse>>;
#[unsafe(method(privateKeys))]
#[unsafe(method_family = none)]
pub unsafe fn privateKeys(&self) -> Retained<NSArray>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}