Class TotpStoreReadResult.Available
java.lang.Object
com.revetsec.totp.TotpStoreReadResult.Available
- All Implemented Interfaces:
TotpStoreReadResult
- Enclosing interface:
TotpStoreReadResult
@Immutable
public static final class TotpStoreReadResult.Available
extends Object
implements TotpStoreReadResult
Complete observations at one authoritative snapshot point.
- Since:
- 1.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface TotpStoreReadResult
TotpStoreReadResult.Available, TotpStoreReadResult.Fenced, TotpStoreReadResult.UnavailableModifier and TypeInterfaceDescriptionstatic final classComplete observations at one authoritative snapshot point.static final classThe requested recovery epoch is no longer authoritative.static final classAn authoritative read could not be confirmed. -
Method Summary
Modifier and TypeMethodDescriptionfromSnapshot(@NonNull TotpStoreSnapshot snapshot) Wraps a complete snapshot.Returns the immutable snapshot.toString()Redacts all observations.
-
Method Details
-
fromSnapshot
public static @NonNull TotpStoreReadResult.Available fromSnapshot(@NonNull TotpStoreSnapshot snapshot) Wraps a complete snapshot.- Parameters:
snapshot- the authoritative observations- Returns:
- the available outcome
- Since:
- 1.0.0
-
getSnapshot
Returns the immutable snapshot.- Returns:
- the observations
- Since:
- 1.0.0
-
toString
-