Interface PasswordPepperSource
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Thread-safe application source of coherent pepper-key snapshots. Implementations must be
bounded and must not log key material. The hasher calls this on the caller thread, never from
its builder or a library worker thread.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull PasswordPepperSourcefromSnapshot(@NonNull PasswordPepperSnapshot snapshot) Supplies a constant snapshot until the application replaces its hasher configuration.Supplies the complete snapshot for one operation.
-
Method Details
-
snapshotResult
Supplies the complete snapshot for one operation.- Returns:
- available or unavailable, never
null - Since:
- 1.0.0
-
fromSnapshot
Supplies a constant snapshot until the application replaces its hasher configuration.- Parameters:
snapshot- immutable keys- Returns:
- fixed source
- Since:
- 1.0.0
-