目录

CLASS info
public class PublicKeyCredentialDescriptor
Defines credential parameters to be used for FIDO2 registration or authentication.

Public Constructor Summary

Method name

PublicKeyCredentialDescriptor(PublicKeyCredentialType type, byte[] id)

Represents a constructor for PublicKeyCredentialDescriptor, which contains attributes that the calling party specifies when referencing credentials as input parameters for registration or authentication.

PublicKeyCredentialDescriptor(PublicKeyCredentialType type, byte[] id, ArrayListtransports)

Represents a constructor for PublicKeyCredentialDescriptor, which contains attributes that the calling party specifies when referencing credentials as input parameters for registration or authentication.

Public Method Summary

Return typeMethod name
PublicKeyCredentialType

getType()

Obtains a credential type.

byte[]

getId()

Obtains a credential ID.

List

getTransports()

Obtains an authenticator access type list.

Public Constructors

Method
PublicKeyCredentialDescriptor (PublicKeyCredentialType type, byte[] id)
Represents a constructor for PublicKeyCredentialDescriptor, which contains attributes that the calling party specifies when referencing credentials as input parameters for registration or authentication.

Parameters

Parameter nameParameter desc
typeCredential type.
idID of the public key credential referenced by the calling party.
Method
PublicKeyCredentialDescriptor (PublicKeyCredentialType type, byte[] id, ArrayListtransports)
Represents a constructor for PublicKeyCredentialDescriptor, which contains attributes that the calling party specifies when referencing credentials as input parameters for registration or authentication.

Parameters

Parameter nameParameter desc
typeCredential type.
idID of the public key credential referenced by the calling party.
transportsList of authenticator access types, including USB, NFC, and Bluetooth.

Public method

Method
getType()
Obtains a credential type.

Return

typedesc
PublicKeyCredentialTypeCredential type.
Method
getId()
Obtains a credential ID.

Return

typedesc
byte[]Credential ID.
Method
getTransports()
Obtains an authenticator access type list.

Return

typedesc
ListAuthenticator access type list.