pub trait Ctap2Api: Sealed {
// Required methods
fn get_info<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn make_credential<'life0, 'async_trait>(
&'life0 mut self,
request: Request,
) -> Pin<Box<dyn Future<Output = Result<Response, StatusCode>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_assertion<'life0, 'async_trait>(
&'life0 self,
request: Request,
) -> Pin<Box<dyn Future<Output = Result<Response, StatusCode>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Methods defined as being required for a CTAP 2.0 compliant authenticator to implement.
This trait is sealed to prevent missuse and to prevent incorrect implementations in the wild.
If you need to define an authenticator please use the Authenticator
struct which provides
the necessary generics to customize storage and UI interactions.
These methods are provided as traits in order to have a remotely connected authenticators through the different transports defined in CTAP 2.0.
Required Methods§
Sourcefn get_info<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_info<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Request to get the information of the authenticator and see what it supports.
Sourcefn make_credential<'life0, 'async_trait>(
&'life0 mut self,
request: Request,
) -> Pin<Box<dyn Future<Output = Result<Response, StatusCode>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn make_credential<'life0, 'async_trait>(
&'life0 mut self,
request: Request,
) -> Pin<Box<dyn Future<Output = Result<Response, StatusCode>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Request to create and save a new credential in the authenticator.
Sourcefn get_assertion<'life0, 'async_trait>(
&'life0 self,
request: Request,
) -> Pin<Box<dyn Future<Output = Result<Response, StatusCode>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_assertion<'life0, 'async_trait>(
&'life0 self,
request: Request,
) -> Pin<Box<dyn Future<Output = Result<Response, StatusCode>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Request to assert a user’s existing credential that might exist in the authenticator.