Skip to main content

PublicKeyCredentialParameters

Namespace: Wisej.Ext.WebAuthn

Assembly: Wisej.Ext.WebAuthn

Contains information about the desired properties of the credential to be created.

public class PublicKeyCredentialParameters

Constructors

Instance memberPublicKeyCredentialParameters()

Creates a new instance of PublicKeyCredentialParameters.

Instance memberPublicKeyCredentialParameters(alg, type)

Creates a new instance of PublicKeyCredentialParameters with the given configuration.

NameTypeDescription
algCOSEAlgorithmIdentifier
typeStringThe type of credential key (i.e. "public-key").

Properties

Instance memberAlg

COSEAlgorithmIdentifier: 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.

Instance memberType

String: This member specifies the type of credential to be created (i.e. "public-key").

Methods

Instance memberToJSON()

Returns a JSON representation of the current object.

Returns: String. The JSON object representation.