Class PasskeyInfo

java.lang.Object
com.iizix.user.PasskeyInfo

public final class PasskeyInfo extends Object
A passkey of a user as the SignIn module shows it in "Sign-in & security": what the user needs to tell the passkeys apart, and no key material (CC-LOGIN-L8-PASSKEYS).
Author:
Christopher Mindus
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final String
    The AAGUID of the authenticator in its text form, which names the make of the authenticator or of the passkey provider; all zeroes when the authenticator does not say.
    final boolean
    Flag for a passkey that was synchronized when it was last used (backed up): it survives the loss of one device.
    final boolean
    Flag for a passkey that may be synchronized between the devices of the user (backup eligible), e.g.
    final long
    The time the passkey was registered, in epoch milliseconds.
    final String
    The identifier of the passkey on this server, used to rename and to remove it.
    final long
    The time the passkey was last used to sign in, in epoch milliseconds, zero for never.
    final String
    The name the user gave the passkey, never null.
    final String
    The transports of the authenticator as the client reported them at registration, comma separated, e.g.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PasskeyInfo(String id, String nickname, long created, long lastUsed, boolean backupEligible, boolean backedUp, String transports, String aaguid)
    Creates the passkey information.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the string representation of the passkey information, for debugging.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • id

      public final String id
      The identifier of the passkey on this server, used to rename and to remove it. It is not the credential ID of the authenticator.
    • nickname

      public final String nickname
      The name the user gave the passkey, never null.
    • created

      public final long created
      The time the passkey was registered, in epoch milliseconds.
    • lastUsed

      public final long lastUsed
      The time the passkey was last used to sign in, in epoch milliseconds, zero for never.
    • backupEligible

      public final boolean backupEligible
      Flag for a passkey that may be synchronized between the devices of the user (backup eligible), e.g. by iCloud Keychain or Google Password Manager. false is a passkey bound to one device, such as a security key.
    • backedUp

      public final boolean backedUp
      Flag for a passkey that was synchronized when it was last used (backed up): it survives the loss of one device.
    • transports

      public final String transports
      The transports of the authenticator as the client reported them at registration, comma separated, e.g. internal or usb,nfc; empty when none was reported.
    • aaguid

      public final String aaguid
      The AAGUID of the authenticator in its text form, which names the make of the authenticator or of the passkey provider; all zeroes when the authenticator does not say.
  • Constructor Details

    • PasskeyInfo

      public PasskeyInfo(String id, String nickname, long created, long lastUsed, boolean backupEligible, boolean backedUp, String transports, String aaguid)
      Creates the passkey information.
      Parameters:
      id - The identifier of the passkey on this server.
      nickname - The name the user gave the passkey.
      created - The registration time, epoch milliseconds.
      lastUsed - The time of the last use, epoch milliseconds, zero for never.
      backupEligible - Flag for a passkey that may be synchronized.
      backedUp - Flag for a passkey that was synchronized when last used.
      transports - The transports, comma separated, null for none.
      aaguid - The AAGUID in its text form, null for none.
      Throws:
      NullPointerException - If id is null.
  • Method Details

    • toString

      public String toString()
      Gets the string representation of the passkey information, for debugging.
      Overrides:
      toString in class Object
      Returns:
      The string, without key material.