Record Class SecurityScanTarget
java.lang.Object
java.lang.Record
ai.pipeline.connector.intake.security.SecurityScanTarget
What the intake security scan examines for one upload. Today it is the set of
name candidates (filename, source path/URI) plus the declared MIME type —
enough for the filename/extension policy.
This is the seam for content-based checks (e.g. malware scanning): add the
bytes/size here and the call sites build the target the same way, with no
change to IntakeSecurityScanner's contract.
-
Constructor Summary
ConstructorsConstructorDescriptionSecurityScanTarget(String mimeType, List<String> names) Creates an instance of aSecurityScanTargetrecord class. -
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.mimeType()Returns the value of themimeTyperecord component.names()Returns the value of thenamesrecord component.static SecurityScanTargetstatic SecurityScanTargetofPipeDoc(ai.pipestream.data.v1.PipeDoc doc) Build a target from a PipeDoc: its blob filename + MIME, plus source path/URI.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SecurityScanTarget
-
-
Method Details
-
of
-
ofPipeDoc
Build a target from a PipeDoc: its blob filename + MIME, plus source path/URI. -
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). -
mimeType
Returns the value of themimeTyperecord component.- Returns:
- the value of the
mimeTyperecord component
-
names
-