pub struct MakeCredentialRequest {
pub client_data_hash: Vec<u8>,
pub rp: RelyingParty,
pub user: User,
pub pub_key_cred_params: Vec<PubKeyCredParams>,
pub exclude_list: Vec<PublicKeyCredentialDescriptor>,
pub options: Option<BTreeMap<String, bool>>,
pub pin_uv_auth_param: Option<Vec<u8>>,
pub pin_uv_auth_proto: Option<u32>,
pub enterprise_attest: Option<u32>,
}
Available on crate feature
ctap2
only.Expand description
authenticatorMakeCredential
request type.
Fields§
§client_data_hash: Vec<u8>
Hash of the ClientData binding specified by the host.
rp: RelyingParty
Describes the relying party which the new credential will be associated with.
user: User
Describes the user account to which the new credential will be associated with by the RelyingParty.
pub_key_cred_params: Vec<PubKeyCredParams>
List of supported algorithms for credential generation.
exclude_list: Vec<PublicKeyCredentialDescriptor>
List of existing credentials which the RelyingParty has for this User. This prevents re-enrollment of the same authenticator.
options: Option<BTreeMap<String, bool>>
Parameters to influence operation.
pin_uv_auth_param: Option<Vec<u8>>
Result of calling authenticate(pin_uv_auth_token, client_data_hash)
.
pin_uv_auth_proto: Option<u32>
PIN/UV protocol version chosen by the platform.
enterprise_attest: Option<u32>
Enterprise attestation support. Not yet implemented.
Trait Implementations§
Source§impl CBORCommand for MakeCredentialRequest
impl CBORCommand for MakeCredentialRequest
Source§type Response = MakeCredentialResponse
type Response = MakeCredentialResponse
The response type associated with this command.
Source§const HAS_PAYLOAD: bool = true
const HAS_PAYLOAD: bool = true
If true (default), then the command has a payload, which will be
serialized into CBOR format. Read more
Source§impl CBORResponse for MakeCredentialRequest
impl CBORResponse for MakeCredentialRequest
Source§impl Clone for MakeCredentialRequest
impl Clone for MakeCredentialRequest
Source§fn clone(&self) -> MakeCredentialRequest
fn clone(&self) -> MakeCredentialRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MakeCredentialRequest
impl Debug for MakeCredentialRequest
Source§impl<'de> Deserialize<'de> for MakeCredentialRequest
impl<'de> Deserialize<'de> for MakeCredentialRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<MakeCredentialRequest> for BTreeMap<u32, Value>
impl From<MakeCredentialRequest> for BTreeMap<u32, Value>
Source§fn from(value: MakeCredentialRequest) -> Self
fn from(value: MakeCredentialRequest) -> Self
Converts to this type from the input type.
Source§impl Serialize for MakeCredentialRequest
impl Serialize for MakeCredentialRequest
Auto Trait Implementations§
impl Freeze for MakeCredentialRequest
impl RefUnwindSafe for MakeCredentialRequest
impl Send for MakeCredentialRequest
impl Sync for MakeCredentialRequest
impl Unpin for MakeCredentialRequest
impl UnwindSafe for MakeCredentialRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more