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 thePublicKeyCredentialobject returned by the latter methods.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPublicKeyCredentialDescriptor.PublicKeyCredentialDescriptorBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PublicKeyCredentialDescriptor.PublicKeyCredentialDescriptorBuilder.MandatoryStagesbuilder()intcompareTo(PublicKeyCredentialDescriptor other)booleanequals(java.lang.Object o)@NonNull ByteArraygetId()The credential ID of the public key credential the caller is referring to.java.util.Optional<java.util.SortedSet<AuthenticatorTransport>>getTransports()@NonNull PublicKeyCredentialTypegetType()The type of the credential the caller is referring to.inthashCode()PublicKeyCredentialDescriptor.PublicKeyCredentialDescriptorBuildertoBuilder()java.lang.StringtoString()
-
-
-
Method Detail
-
compareTo
public int compareTo(PublicKeyCredentialDescriptor other)
- Specified by:
compareToin 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-