Record Class KeyEncryptionProperties
java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.infrastructure.keys.KeyEncryptionProperties
- Record Components:
password- the passphrase the encryption key is derived from.salt- the salt of the derivation, hex encoded.
Inputs of the encryption of private signing keys at rest.
The record never prints its values: a log line or an exception message that mentions it cannot leak them.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionKeyEncryptionProperties(String password, String salt) Validates the properties. -
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.password()Returns the value of thepasswordrecord component.salt()Returns the value of thesaltrecord component.toString()Describes the properties without revealing them.
-
Field Details
-
Constructor Details
-
KeyEncryptionProperties
Validates the properties.- Throws:
IllegalArgumentException- if the passphrase or the salt is null or blank.
-
-
Method Details
-
toString
Describes the properties without revealing them. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 withObjects::equals(Object,Object). -
password
Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-
salt
Returns the value of thesaltrecord component.- Returns:
- the value of the
saltrecord component
-