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.