pub struct PublicKeyCredentialParameters {
pub ty: PublicKeyCredentialType,
pub alg: Algorithm,
}Expand description
This type is used to supply additional parameters when creating a new credential.
https://w3c.github.io/webauthn/#dictdef-publickeycredentialparameters
Fields§
§ty: PublicKeyCredentialTypeThis member specifies the type of credential to be created. The value SHOULD be a member of
PublicKeyCredentialType but client platforms MUST ignore unknown values, ignoring any
PublicKeyCredentialParameters with an PublicKeyCredentialType::Unknown type.
alg: AlgorithmThis member specifies the cryptographic signature algorithm with which the newly generated credential will be used, and thus also the type of asymmetric key pair to be generated, e.g., RSA or Elliptic Curve.
Note: we use
algas the latter member name, rather than spelling-outalgorithm, because it will be serialized into a message to the authenticator, which may be sent over a low-bandwidth link.
Implementations§
Source§impl PublicKeyCredentialParameters
impl PublicKeyCredentialParameters
Sourcepub fn default_algorithms() -> Vec<Self>
pub fn default_algorithms() -> Vec<Self>
Create an array with the default algorithms in case
PublicKeyCredentialCreationOptions::pub_key_cred_params comes in empty.
This array contains:
Trait Implementations§
Source§impl Clone for PublicKeyCredentialParameters
impl Clone for PublicKeyCredentialParameters
Source§fn clone(&self) -> PublicKeyCredentialParameters
fn clone(&self) -> PublicKeyCredentialParameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more