目录

CLASS info
public class AuthenticatorSelectionCriteria
Represents configuration items related to the authenticator, which are specified by the WebAuthn relying party.

Nested Class Summary

ClassDesc
AuthenticatorSelectionCriteria.BuilderRepresents a builder for AuthenticatorSelectionCriteria.

Public Constructor Summary

Method name

AuthenticatorSelectionCriteria (Attachment attachment, Boolean resident,UserVerificationRequirement userVerification)

Represents a constructor for AuthenticatorSelectionCriteria.

Public Methods Summary

Return typeMethod name
Attachment

getAuthenticatorAttachment()

Obtains an authenticator type.

Boolean

isRequireResidentKey()

Checks whether the authenticator needs to store credentials.

UserVerificationRequirement

getUserVerification()

Obtains the user verification setting.A user can be verified based on personal characteristic information such as the fingerprint, facial features, and iris.

Public Constructors

Method

AuthenticatorSelectionCriteria (Attachment attachment, Boolean resident,UserVerificationRequirement userVerification)

Represents a constructor for AuthenticatorSelectionCriteria.

Parameters

Parameter nameParameter desc
attachmentEnumerated authenticator type.
residentIndicates whether the authenticator needs to store credentials. This parameter is reserved only for compatibility with earlier versions. The default value is false.
userVerificationIndicates whether to perform user verification.

Public Methods

Method
Attachment getAuthenticatorAttachment()
Obtains an authenticator type.

Return

typedesc
AttachmentAuthenticator type, including the following:Platform authenticator, such as a fingerprint, facial feature, or iris authenticatorRoaming authenticator, such as a Bluetooth, NFC, or USB authenticator
Method
Boolean isRequireResidentKey()
Checks whether the authenticator needs to store credentials.

Return

typedesc
BooleanWhether the authenticator needs to store credentials.
Method
UserVerificationRequirement getUserVerification()
Obtains the user verification setting.

Return

typedesc
UserVerificationRequirementWhether to perform user verification.For details, please refer to UserVerificationRequirement.