Trait ASAuthorizationProviderExtensionRegistrationHandler

Source
pub unsafe trait ASAuthorizationProviderExtensionRegistrationHandler: NSObjectProtocol {
    // Provided methods
    unsafe fn beginDeviceRegistrationUsingLoginManager_options_completion(
        &self,
        login_manager: &ASAuthorizationProviderExtensionLoginManager,
        options: ASAuthorizationProviderExtensionRequestOptions,
        completion: &DynBlock<dyn Fn(ASAuthorizationProviderExtensionRegistrationResult)>,
    )
       where Self: Sized + Message { ... }
    unsafe fn beginUserRegistrationUsingLoginManager_userName_authenticationMethod_options_completion(
        &self,
        login_manager: &ASAuthorizationProviderExtensionLoginManager,
        user_name: Option<&NSString>,
        authentication_method: ASAuthorizationProviderExtensionAuthenticationMethod,
        options: ASAuthorizationProviderExtensionRequestOptions,
        completion: &DynBlock<dyn Fn(ASAuthorizationProviderExtensionRegistrationResult)>,
    )
       where Self: Sized + Message { ... }
    unsafe fn registrationDidComplete(&self)
       where Self: Sized + Message { ... }
    unsafe fn registrationDidCancel(&self)
       where Self: Sized + Message { ... }
    unsafe fn supportedGrantTypes(
        &self,
    ) -> ASAuthorizationProviderExtensionSupportedGrantTypes
       where Self: Sized + Message { ... }
    unsafe fn protocolVersion(
        &self,
    ) -> ASAuthorizationProviderExtensionPlatformSSOProtocolVersion
       where Self: Sized + Message { ... }
    unsafe fn supportedDeviceSigningAlgorithms(
        &self,
    ) -> Retained<NSArray<ASAuthorizationProviderExtensionSigningAlgorithm>>
       where Self: Sized + Message { ... }
    unsafe fn supportedDeviceEncryptionAlgorithms(
        &self,
    ) -> Retained<NSArray<ASAuthorizationProviderExtensionEncryptionAlgorithm>>
       where Self: Sized + Message { ... }
    unsafe fn supportedUserSecureEnclaveKeySigningAlgorithms(
        &self,
    ) -> Retained<NSArray<ASAuthorizationProviderExtensionSigningAlgorithm>>
       where Self: Sized + Message { ... }
    unsafe fn keyWillRotateForKeyType_newKey_loginManager_completion(
        &self,
        key_type: ASAuthorizationProviderExtensionKeyType,
        new_key: &SecKey,
        login_manager: &ASAuthorizationProviderExtensionLoginManager,
        completion: &DynBlock<dyn Fn(Bool)>,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature ASAuthorizationProviderExtensionRegistrationHandler only.
Expand description

Provided Methods§

Source

unsafe fn beginDeviceRegistrationUsingLoginManager_options_completion( &self, login_manager: &ASAuthorizationProviderExtensionLoginManager, options: ASAuthorizationProviderExtensionRequestOptions, completion: &DynBlock<dyn Fn(ASAuthorizationProviderExtensionRegistrationResult)>, )
where Self: Sized + Message,

Available on crate features ASAuthorizationProviderExtensionLoginManager and block2 only.

This initiates device registration process for the SSO extension.

Parameter loginManager: The login manager used to interface with Platform SSO.

Parameter options: The request options that apply to the request.

Parameter completion: The completion to call to continue device registration.

Source

unsafe fn beginUserRegistrationUsingLoginManager_userName_authenticationMethod_options_completion( &self, login_manager: &ASAuthorizationProviderExtensionLoginManager, user_name: Option<&NSString>, authentication_method: ASAuthorizationProviderExtensionAuthenticationMethod, options: ASAuthorizationProviderExtensionRequestOptions, completion: &DynBlock<dyn Fn(ASAuthorizationProviderExtensionRegistrationResult)>, )
where Self: Sized + Message,

Available on crate features ASAuthorizationProviderExtensionLoginManager and block2 only.

This initiates user registration process for the user and the extension.

Parameter loginManager: The login manager used to interface with Platform SSO.

Parameter userName: The username for the user registration.

Parameter authenticationMethod: The authentication method to be used for the user.

Parameter options: The request options that apply to the request.

Parameter completion: The completion to call to continue user registration.

Source

unsafe fn registrationDidComplete(&self)
where Self: Sized + Message,

Call to extension to free any resources used by the extension during registration. It will be called once after all current registration calls are complete.

Source

unsafe fn registrationDidCancel(&self)
where Self: Sized + Message,

Call to extension when the registration has been cancelled.

Source

unsafe fn supportedGrantTypes( &self, ) -> ASAuthorizationProviderExtensionSupportedGrantTypes
where Self: Sized + Message,

The grant types supported by the identity provider.

Source

unsafe fn protocolVersion( &self, ) -> ASAuthorizationProviderExtensionPlatformSSOProtocolVersion
where Self: Sized + Message,

The protocol version supported by the identity provider.

Source

unsafe fn supportedDeviceSigningAlgorithms( &self, ) -> Retained<NSArray<ASAuthorizationProviderExtensionSigningAlgorithm>>
where Self: Sized + Message,

Available on crate feature ASAuthorizationProviderExtensionLoginConfiguration only.

The supported device signing algorithms.

Source

unsafe fn supportedDeviceEncryptionAlgorithms( &self, ) -> Retained<NSArray<ASAuthorizationProviderExtensionEncryptionAlgorithm>>
where Self: Sized + Message,

Available on crate feature ASAuthorizationProviderExtensionLoginConfiguration only.

The supported device encryption algorithms.

Source

unsafe fn supportedUserSecureEnclaveKeySigningAlgorithms( &self, ) -> Retained<NSArray<ASAuthorizationProviderExtensionSigningAlgorithm>>
where Self: Sized + Message,

Available on crate feature ASAuthorizationProviderExtensionLoginConfiguration only.

The supported user Secure Enclave Key signing algorithms.

Source

unsafe fn keyWillRotateForKeyType_newKey_loginManager_completion( &self, key_type: ASAuthorizationProviderExtensionKeyType, new_key: &SecKey, login_manager: &ASAuthorizationProviderExtensionLoginManager, completion: &DynBlock<dyn Fn(Bool)>, )
where Self: Sized + Message,

Available on crate features ASAuthorizationProviderExtensionLoginManager and block2 and objc2-security only.

The specified keyType will rotate to a new key. The rotation is complete when the completion handler is called. This is only called by the system for automatic key rotation.

Trait Implementations§

Source§

impl ProtocolType for dyn ASAuthorizationProviderExtensionRegistrationHandler

Source§

const NAME: &'static str = "ASAuthorizationProviderExtensionRegistrationHandler"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn ASAuthorizationProviderExtensionRegistrationHandler

Implementations on Foreign Types§

Source§

impl<T> ASAuthorizationProviderExtensionRegistrationHandler for ProtocolObject<T>

Implementors§