Class WebAuthnStoreEntry.Present

java.lang.Object
com.revetsec.webauthn.WebAuthnStoreEntry.Present
All Implemented Interfaces:
WebAuthnStoreEntry
Enclosing interface:
WebAuthnStoreEntry

@Immutable public static final class WebAuthnStoreEntry.Present extends Object implements WebAuthnStoreEntry
A record and its opaque, non-reused compare-and-commit version.
Since:
1.0.0
  • Method Details

    • fromVersionAndSealedBytes

      public static @NonNull WebAuthnStoreEntry.Present fromVersionAndSealedBytes(byte @NonNull [] version, byte @NonNull [] sealedBytes)
      Copies an opaque version and a bounded sealed record.
      Parameters:
      version - the nonempty, non-reused opaque version
      sealedBytes - the bounded sealed record
      Returns:
      the present observation
      Since:
      1.0.0
    • getVersion

      public byte @NonNull [] getVersion()
      Returns a defensive copy of the opaque version.
      Returns:
      the opaque version
      Since:
      1.0.0
    • getSealedBytes

      public byte @NonNull [] getSealedBytes()
      Returns a defensive copy of the sealed record.
      Returns:
      the sealed bytes
      Since:
      1.0.0
    • toString

      Redacts the record and version. @since 1.0.0
      Overrides:
      toString in class Object