java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.api.web.v1.generated.model.Passkey
Record Components:
id - Credential identifier, as unpadded base64url.
label - Name that identifies the passkey in the list.
createdAt - When the passkey was registered.
lastUsedAt - When the passkey was last used to authenticate; equal to createdAt until its first use, because the credential store always records a value.
signatureCount - Signature counter reported by the authenticator at its last use.
backupEligible - Whether the credential may be synchronised (the WebAuthn BE flag).
backedUp - Whether the credential is currently synchronised (the WebAuthn BS flag).

@Generated(value="org.openapitools.codegen.languages.SpringCodegen", date="2026-11-08T20:21:45.782821081Z[Etc/UTC]", comments="Generator version: 7.27.0") public record Passkey(@NotNull @Pattern(regexp="^[A-Za-z0-9_-]+$") @Size(min=1,max=1000) String id, @NotNull @Size(min=1,max=100) String label, @NotNull @Valid Instant createdAt, @Valid Instant lastUsedAt, @NotNull @Min(0L) Long signatureCount, @NotNull Boolean backupEligible, @NotNull Boolean backedUp) extends Record
A WebAuthn credential registered by the account
  • Field Details

    • id

      @NotNull @Pattern(regexp="^[A-Za-z0-9_-]+$") @Size(min=1, max=1000) private final @NotNull @Pattern(regexp="^[A-Za-z0-9_-]+$") @Size(min=1,max=1000) String id
      The field for the id record component.
    • label

      @NotNull @Size(min=1, max=100) private final @NotNull @Size(min=1,max=100) String label
      The field for the label record component.
    • createdAt

      @DateTimeFormat(iso=DATE_TIME) @NotNull @Valid private final @NotNull @Valid Instant createdAt
      The field for the createdAt record component.
    • lastUsedAt

      @DateTimeFormat(iso=DATE_TIME) @Valid @Nullable private final @Valid Instant lastUsedAt
      The field for the lastUsedAt record component.
    • signatureCount

      @NotNull @Min(0L) private final @NotNull @Min(0L) Long signatureCount
      The field for the signatureCount record component.
    • backupEligible

      @NotNull private final @NotNull Boolean backupEligible
      The field for the backupEligible record component.
    • backedUp

      @NotNull private final @NotNull Boolean backedUp
      The field for the backedUp record component.
  • Constructor Details

    • Passkey

      public Passkey(@NotNull @Pattern(regexp="^[A-Za-z0-9_-]+$") @Size(min=1,max=1000) @NotNull @Pattern(regexp="^[A-Za-z0-9_-]+$") @Size(min=1,max=1000) String id, @NotNull @Size(min=1,max=100) @NotNull @Size(min=1,max=100) String label, @DateTimeFormat(iso=DATE_TIME) @NotNull @Valid @NotNull @Valid Instant createdAt, @DateTimeFormat(iso=DATE_TIME) @Valid @Nullable @Valid Instant lastUsedAt, @NotNull @Min(0L) @NotNull @Min(0L) Long signatureCount, @NotNull @NotNull Boolean backupEligible, @NotNull @NotNull Boolean backedUp)
      Creates an instance of a Passkey record class.
      Parameters:
      id - the value for the id record component
      label - the value for the label record component
      createdAt - the value for the createdAt record component
      lastUsedAt - the value for the lastUsedAt record component
      signatureCount - the value for the signatureCount record component
      backupEligible - the value for the backupEligible record component
      backedUp - the value for the backedUp record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      @NotNull @Pattern(regexp="^[A-Za-z0-9_-]+$") @Size(min=1, max=1000) public @NotNull @Pattern(regexp="^[A-Za-z0-9_-]+$") @Size(min=1,max=1000) String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • label

      @NotNull @Size(min=1, max=100) public @NotNull @Size(min=1,max=100) String label()
      Returns the value of the label record component.
      Returns:
      the value of the label record component
    • createdAt

      @DateTimeFormat(iso=DATE_TIME) @NotNull @Valid public @NotNull @Valid Instant createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component
    • lastUsedAt

      @DateTimeFormat(iso=DATE_TIME) @Valid @Nullable public @Valid Instant lastUsedAt()
      Returns the value of the lastUsedAt record component.
      Returns:
      the value of the lastUsedAt record component
    • signatureCount

      @NotNull @Min(0L) public @NotNull @Min(0L) Long signatureCount()
      Returns the value of the signatureCount record component.
      Returns:
      the value of the signatureCount record component
    • backupEligible

      @NotNull public @NotNull Boolean backupEligible()
      Returns the value of the backupEligible record component.
      Returns:
      the value of the backupEligible record component
    • backedUp

      @NotNull public @NotNull Boolean backedUp()
      Returns the value of the backedUp record component.
      Returns:
      the value of the backedUp record component