Class PasswordVerificationLimits
java.lang.Object
com.revetsec.password.PasswordVerificationLimits
Input and stored-cost ceilings applied around admitted password preparation/KDF work.
These ceilings are independent of the work gate: an accepted stored memory cost above that
gate's total budget is intentionally unavailable. Configure the memory ceiling at or below
the gate when every accepted cost must be serviceable.
- Since:
- 1.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMutable construction helper; no cryptographic or provider work runs during construction. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Starts a builder from conservative limits.Conservative verification ceilings suitable for initial configuration.Returns the maximum accepted Argon2id parallelism.Returns the maximum accepted Argon2id memory cost.Returns the maximum accepted Argon2id time cost.Returns the input length limit before normalization.Returns the password byte length limit after normalization.Returns the stored-form length limit.
-
Method Details
-
fromDefaults
Conservative verification ceilings suitable for initial configuration.- Returns:
- the limits
- Since:
- 1.0.0
-
builder
Starts a builder from conservative limits.- Returns:
- the builder
- Since:
- 1.0.0
-
getMaximumStoredFormChars
Returns the stored-form length limit.- Returns:
- maximum stored-form characters
- Since:
- 1.0.0
-
getMaximumPasswordChars
Returns the input length limit before normalization.- Returns:
- maximum input UTF-16 code units before normalization
- Since:
- 1.0.0
-
getMaximumPasswordUtf8Bytes
Returns the password byte length limit after normalization.- Returns:
- maximum normalized UTF-8 bytes
- Since:
- 1.0.0
-
getMaximumArgon2idMemoryKiB
Returns the maximum accepted Argon2id memory cost.- Returns:
- maximum Argon2id verification memory in KiB
- Since:
- 1.0.0
-
getMaximumArgon2idPasses
Returns the maximum accepted Argon2id time cost.- Returns:
- maximum Argon2id verification passes
- Since:
- 1.0.0
-
getMaximumArgon2idLanes
Returns the maximum accepted Argon2id parallelism.- Returns:
- maximum Argon2id verification lanes
- Since:
- 1.0.0
-