Record Class KeyringProtection
java.lang.Object
java.lang.Record
zeroecho.core.storage.KeyringProtection
- Record Components:
operationalIterationMaximum- maximum accepted PBKDF2 iteration count; it may restrict but never exceed the absolute decoded maximum
Operational limits applied while opening an encrypted software keyring.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIterations used when a new keyring is created.static final intAbsolute safety ceiling for decoded PBKDF2 iteration counts.static final intLargest operationally accepted PBKDF2 iteration count. -
Constructor Summary
ConstructorsConstructorDescriptionKeyringProtection(int operationalIterationMaximum) Validates the operational limit. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theoperationalIterationMaximumrecord component.static KeyringProtectionstandard()Returns the standard protection policy.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CREATION_ITERATIONS
public static final int CREATION_ITERATIONSIterations used when a new keyring is created.- See Also:
-
MAX_OPERATIONAL_ITERATIONS
public static final int MAX_OPERATIONAL_ITERATIONSLargest operationally accepted PBKDF2 iteration count.- See Also:
-
MAX_DECODED_ITERATIONS
public static final int MAX_DECODED_ITERATIONSAbsolute safety ceiling for decoded PBKDF2 iteration counts.- See Also:
-
-
Constructor Details
-
KeyringProtection
public KeyringProtection(int operationalIterationMaximum) Validates the operational limit.- Throws:
IllegalArgumentException- if the limit is below the creation setting or above the absolute operational maximum
-
-
Method Details
-
standard
Returns the standard protection policy.- Returns:
- policy accepting up to one million iterations
-
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. -
operationalIterationMaximum
public int operationalIterationMaximum()Returns the value of theoperationalIterationMaximumrecord component.- Returns:
- the value of the
operationalIterationMaximumrecord component
-