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
-
Nested Class Summary
Nested classes/interfaces inherited from interface WebAuthnStoreEntry
WebAuthnStoreEntry.Absent, WebAuthnStoreEntry.PresentModifier and TypeInterfaceDescriptionstatic final classConfirmed absence, never an omitted read result.static final classA record and its opaque, non-reused compare-and-commit version. -
Method Summary
Modifier and TypeMethodDescriptionfromVersionAndSealedBytes(byte @NonNull [] version, byte @NonNull [] sealedBytes) Copies an opaque version and a bounded sealed record.byte @NonNull []Returns a defensive copy of the sealed record.byte @NonNull []Returns a defensive copy of the opaque version.toString()Redacts the record and version.
-
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 versionsealedBytes- the bounded sealed record- Returns:
- the present observation
- Since:
- 1.0.0
-
getVersion
Returns a defensive copy of the opaque version.- Returns:
- the opaque version
- Since:
- 1.0.0
-
getSealedBytes
Returns a defensive copy of the sealed record.- Returns:
- the sealed bytes
- Since:
- 1.0.0
-
toString
-