Trait ASCredentialRequest

Source
pub unsafe trait ASCredentialRequest:
    NSObjectProtocol
    + NSSecureCoding
    + NSCopying {
    // Provided methods
    unsafe fn type(&self) -> ASCredentialRequestType
       where Self: Sized + Message { ... }
    unsafe fn credentialIdentity(
        &self,
    ) -> Retained<ProtocolObject<dyn ASCredentialIdentity>>
       where Self: Sized + Message { ... }
}
Available on crate feature ASCredentialRequest only.
Expand description

ASCredentialRequest is used by Credential Provider Extensions to identify a credential to use for an authorization request. For passkey requests it also carries the assertion challenge to be used by the extension to create the assertion response.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn type(&self) -> ASCredentialRequestType
where Self: Sized + Message,

The type of credential used for this request.

Source

unsafe fn credentialIdentity( &self, ) -> Retained<ProtocolObject<dyn ASCredentialIdentity>>
where Self: Sized + Message,

Available on crate feature ASCredentialIdentity only.

The credential identity selected by the user to authenticate.

Trait Implementations§

Source§

impl ProtocolType for dyn ASCredentialRequest

Source§

const NAME: &'static str = "ASCredentialRequest"

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 ASCredentialRequest

Implementations on Foreign Types§

Source§

impl<T> ASCredentialRequest for ProtocolObject<T>

Implementors§

Source§

impl ASCredentialRequest for ASOneTimeCodeCredentialRequest

Available on crate feature ASOneTimeCodeCredentialRequest only.
Source§

impl ASCredentialRequest for ASPasskeyCredentialRequest

Available on crate feature ASPasskeyCredentialRequest only.
Source§

impl ASCredentialRequest for ASPasswordCredentialRequest

Available on crate feature ASPasswordCredentialRequest only.