Class PasswordPepperSnapshot
java.lang.Object
com.revetsec.password.PasswordPepperSnapshot
Coherent active and retained pepper keys for one operation. A key remains available until all
passwords using its ID have been rehashed or reset.
- Since:
- 1.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSnapshot construction; keys are never exposed by iteration. -
Method Summary
Modifier and TypeMethodDescriptionReturns the key ID used for new hashes.toString()withActiveKey(@NonNull PasswordPepperKey activeKey) Starts a snapshot with the key used for new hashes.
-
Method Details
-
withActiveKey
public static @NonNull PasswordPepperSnapshot.Builder withActiveKey(@NonNull PasswordPepperKey activeKey) Starts a snapshot with the key used for new hashes.- Parameters:
activeKey- active key- Returns:
- builder for retained keys
- Since:
- 1.0.0
-
getActiveKeyId
Returns the key ID used for new hashes.- Returns:
- active non-secret key ID
- Since:
- 1.0.0
-
toString
-