Record Class SecurityViolation
java.lang.Object
java.lang.Record
org.apache.camel.util.SecurityViolation
- Record Components:
category- the security category (e.g., "secret", "insecure:ssl", "insecure:serialization", "insecure:dev")propertyKey- the full property key (e.g., "camel.ssl.trustAllCertificates")message- human-readable description of the violationpolicy- the effective policy that was resolved for this violation ("warn" or "fail")
-
Constructor Summary
ConstructorsConstructorDescriptionSecurityViolation(String category, String propertyKey, String message, String policy) Creates an instance of aSecurityViolationrecord 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.message()Returns the value of themessagerecord component.policy()Returns the value of thepolicyrecord component.Returns the value of thepropertyKeyrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
SecurityViolation
Creates an instance of aSecurityViolationrecord class.- Parameters:
category- the value for thecategoryrecord componentpropertyKey- the value for thepropertyKeyrecord componentmessage- the value for themessagerecord componentpolicy- the value for thepolicyrecord 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
-
propertyKey
Returns the value of thepropertyKeyrecord component.- Returns:
- the value of the
propertyKeyrecord component
-
message
-
policy
-