Record Class KeyRotationPolicy
java.lang.Object
java.lang.Record
org.j7m.middleware.crypto.policy.KeyRotationPolicy
- Record Components:
maximumAge- maximum key agerotationRequired- whether rotation is mandatory
-
Constructor Summary
ConstructorsConstructorDescriptionKeyRotationPolicy(Duration maximumAge, boolean rotationRequired) Creates normalized values. -
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.Returns the value of themaximumAgerecord component.booleanReturns the value of therotationRequiredrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
KeyRotationPolicy
Creates normalized values.
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
maximumAge
Returns the value of themaximumAgerecord component.- Returns:
- the value of the
maximumAgerecord component
-
rotationRequired
public boolean rotationRequired()Returns the value of therotationRequiredrecord component.- Returns:
- the value of the
rotationRequiredrecord component
-