Package com.yubico.webauthn.data
Class PublicKeyCredentialDescriptor
- java.lang.Object
-
- com.yubico.webauthn.data.PublicKeyCredentialDescriptor
-
- All Implemented Interfaces:
java.lang.Comparable<PublicKeyCredentialDescriptor>
public final class PublicKeyCredentialDescriptor extends java.lang.Object implements java.lang.Comparable<PublicKeyCredentialDescriptor>
The attributes that are specified by a caller when referring to a public key credential as an input parameter to thenavigator.credentials.create()
ornavigator.credentials.get()
methods. It mirrors the fields of thePublicKeyCredential
object returned by the latter methods.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PublicKeyCredentialDescriptor.PublicKeyCredentialDescriptorBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PublicKeyCredentialDescriptor.PublicKeyCredentialDescriptorBuilder.MandatoryStages
builder()
int
compareTo(PublicKeyCredentialDescriptor other)
boolean
equals(java.lang.Object o)
@NonNull ByteArray
getId()
The credential ID of the public key credential the caller is referring to.java.util.Optional<java.util.SortedSet<AuthenticatorTransport>>
getTransports()
@NonNull PublicKeyCredentialType
getType()
The type of the credential the caller is referring to.int
hashCode()
PublicKeyCredentialDescriptor.PublicKeyCredentialDescriptorBuilder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
compareTo
public int compareTo(PublicKeyCredentialDescriptor other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<PublicKeyCredentialDescriptor>
-
builder
public static PublicKeyCredentialDescriptor.PublicKeyCredentialDescriptorBuilder.MandatoryStages builder()
-
getTransports
public java.util.Optional<java.util.SortedSet<AuthenticatorTransport>> getTransports()
-
toBuilder
public PublicKeyCredentialDescriptor.PublicKeyCredentialDescriptorBuilder toBuilder()
-
getType
@NonNull public @NonNull PublicKeyCredentialType getType()
The type of the credential the caller is referring to.
-
getId
@NonNull public @NonNull ByteArray getId()
The credential ID of the public key credential the caller is referring to.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-