Class TotpStoreEntry.Present
java.lang.Object
com.revetsec.totp.TotpStoreEntry.Present
- All Implemented Interfaces:
TotpStoreEntry
- Enclosing interface:
TotpStoreEntry
@Immutable
public static final class TotpStoreEntry.Present
extends Object
implements TotpStoreEntry
A versioned permanent sealed record.
- Since:
- 1.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface TotpStoreEntry
TotpStoreEntry.Absent, TotpStoreEntry.PresentModifier and TypeInterfaceDescriptionstatic final classConfirmed absence at the authoritative snapshot point.static final classA versioned permanent sealed record. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull TotpStoreEntry.PresentfromRecord(@NonNull TotpStoreRecord record) Wraps a record read from the exact address.Returns the immutable opaque record.toString()Redacts the record.
-
Method Details
-
fromRecord
Wraps a record read from the exact address.- Parameters:
record- the opaque record- Returns:
- the present observation
- Since:
- 1.0.0
-
getRecord
Returns the immutable opaque record.- Returns:
- the record
- Since:
- 1.0.0
-
toString
-