Record Class SecurityUtils.SecurityOption
java.lang.Object
java.lang.Record
org.apache.camel.util.SecurityUtils.SecurityOption
- Record Components:
category- the security category (e.g., "insecure:ssl", "insecure:serialization", "insecure:dev")insecureValue- the value that makes this option insecure (e.g., "true" for boolean flags)
- Enclosing class:
SecurityUtils
public static record SecurityUtils.SecurityOption(String category, String insecureValue)
extends Record
Information about a security-sensitive configuration option.
- Since:
- 4.19.0
-
Constructor Summary
ConstructorsConstructorDescriptionSecurityOption(String category, String insecureValue) Creates an instance of aSecurityOptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinsecureValuerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SecurityOption
Creates an instance of aSecurityOptionrecord class.- Parameters:
category- the value for thecategoryrecord componentinsecureValue- the value for theinsecureValuerecord component
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
category
-
insecureValue
Returns the value of theinsecureValuerecord component.- Returns:
- the value of the
insecureValuerecord component
-