Package com.babelqueue.schema
Record Class SensitivePath
java.lang.Object
java.lang.Record
com.babelqueue.schema.SensitivePath
- Record Components:
path- the dotted path to the marked property (""for a root mark)category- the optional category string, or""
One property marked
x-gdpr-sensitive (ADR-0030), located by its dotted path from the
schema root. Array element schemas use the "field[]" segment (matching the validator /
babelqueue-registry compat convention); a mark on the root schema itself is the empty
path "". category is the optional "x-gdpr-sensitive": "<category>" string
(e.g. "email"), or "" when the keyword was the boolean true.
It is the value-level counterpart to babelqueue-registry's inventory: the
Gdpr helpers use these paths to locate the leaves they must encrypt on
produce and decrypt on consume. The Java mirror of the Go schema.SensitivePath.
-
Constructor Summary
ConstructorsConstructorDescriptionSensitivePath(String path, String category) Creates an instance of aSensitivePathrecord 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.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
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). -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-