Package com.yubico.webauthn.data
Class PublicKeyCredentialDescriptor
java.lang.Object
com.yubico.webauthn.data.PublicKeyCredentialDescriptor
- All Implemented Interfaces:
ToPublicKeyCredentialDescriptor,Comparable<PublicKeyCredentialDescriptor>
public final class PublicKeyCredentialDescriptor
extends Object
implements Comparable<PublicKeyCredentialDescriptor>, ToPublicKeyCredentialDescriptor
The attributes that are specified by a caller when referring to a public key credential as an
input parameter to the
navigator.credentials.create() or
navigator.credentials.get() methods. It mirrors the fields of the PublicKeyCredential object returned by the latter methods.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()intboolean@NonNull ByteArraygetId()The credential ID of the public key credential the caller is referring to.@NonNull PublicKeyCredentialTypegetType()The type of the credential the caller is referring to.inthashCode()This implementation ofToPublicKeyCredentialDescriptor.toPublicKeyCredentialDescriptor()is a no-op which returnsthisunchanged.toString()
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<PublicKeyCredentialDescriptor>
-
builder
public static PublicKeyCredentialDescriptor.PublicKeyCredentialDescriptorBuilder.MandatoryStages builder() -
toPublicKeyCredentialDescriptor
This implementation ofToPublicKeyCredentialDescriptor.toPublicKeyCredentialDescriptor()is a no-op which returnsthisunchanged.- Specified by:
toPublicKeyCredentialDescriptorin interfaceToPublicKeyCredentialDescriptor- Returns:
this.- See Also:
-
getTransports
-
toBuilder
-
getType
The type of the credential the caller is referring to. -
getId
The credential ID of the public key credential the caller is referring to. -
equals
-
hashCode
public int hashCode() -
toString
-