Record Class FipsProfile
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.credential.standards.FipsProfile
- Record Components:
strictMode- iftrue, only FIPS-acceptable algorithms are permitted at the operator's decision boundaryallowsArgon2- Argon2id (BouncyCastle) — never FIPS-validated as of FIPS 140-3allowsBcrypt- bcrypt (BouncyCastle) — never FIPS-validatedallowsScrypt- scrypt (BouncyCastle) — never FIPS-validatedallowsHibpSha1Prefix- the HIBP k-anonymity protocol computes a SHA-1 digest of the candidate; SHA-1 is deprecated in FIPS 180-4 §6 for hashing — setfalsein strict deployments
public record FipsProfile(boolean strictMode, boolean allowsArgon2, boolean allowsBcrypt, boolean allowsScrypt, boolean allowsHibpSha1Prefix)
extends Record
Operator-declared FIPS operating profile.
This is an advisory configuration record. The framework does not auto-detect FIPS mode, does not switch providers, and does not change algorithm selection based on this value. Its purpose is to give operators one explicit place to declare the intent of the deployment, suitable for inclusion in audit logs and static configuration checks.
See docs/security/credentials/standards/fips-profile.md
for the position statement and the operator checklist that this
record is paired with.
-
Constructor Summary
ConstructorsConstructorDescriptionFipsProfile(boolean strictMode, boolean allowsArgon2, boolean allowsBcrypt, boolean allowsScrypt, boolean allowsHibpSha1Prefix) Creates an instance of aFipsProfilerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theallowsArgon2record component.booleanReturns the value of theallowsBcryptrecord component.booleanReturns the value of theallowsHibpSha1Prefixrecord component.booleanReturns the value of theallowsScryptrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static FipsProfilePermissive default: no FIPS claims.static FipsProfilestrict()Strict default: only FIPS-acceptable algorithms are allowed.booleanReturns the value of thestrictModerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FipsProfile
public FipsProfile(boolean strictMode, boolean allowsArgon2, boolean allowsBcrypt, boolean allowsScrypt, boolean allowsHibpSha1Prefix) Creates an instance of aFipsProfilerecord class.- Parameters:
strictMode- the value for thestrictModerecord componentallowsArgon2- the value for theallowsArgon2record componentallowsBcrypt- the value for theallowsBcryptrecord componentallowsScrypt- the value for theallowsScryptrecord componentallowsHibpSha1Prefix- the value for theallowsHibpSha1Prefixrecord component
-
-
Method Details
-
permissive
Permissive default: no FIPS claims. All algorithm modules are allowed; the deployment makes no statement about FIPS mode at all. -
strict
Strict default: only FIPS-acceptable algorithms are allowed. Argon2, bcrypt, scrypt and HIBP SHA-1 prefix are forbidden. The JDK distribution andjava.securityconfiguration still have to be operator-verified — this record does not verify them. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
strictMode
public boolean strictMode()Returns the value of thestrictModerecord component.- Returns:
- the value of the
strictModerecord component
-
allowsArgon2
public boolean allowsArgon2()Returns the value of theallowsArgon2record component.- Returns:
- the value of the
allowsArgon2record component
-
allowsBcrypt
public boolean allowsBcrypt()Returns the value of theallowsBcryptrecord component.- Returns:
- the value of the
allowsBcryptrecord component
-
allowsScrypt
public boolean allowsScrypt()Returns the value of theallowsScryptrecord component.- Returns:
- the value of the
allowsScryptrecord component
-
allowsHibpSha1Prefix
public boolean allowsHibpSha1Prefix()Returns the value of theallowsHibpSha1Prefixrecord component.- Returns:
- the value of the
allowsHibpSha1Prefixrecord component
-