Class DetectionResult
- java.lang.Object
-
- org.openidentityplatform.openig.ai.filter.DetectionResult
-
public final class DetectionResult extends Object
Immutable result produced by anyInjectionDetectorimplementation.A result carries:
- whether an injection was detected
- the confidence score (0.0 – 1.0; -1 when unavailable)
- a machine-readable reason code for structured audit logging
- the detector layer that made the final determination
-
-
Field Summary
Fields Modifier and Type Field Description static DetectionResultCLEAN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DetectionResultclean()StringgetDetector()StringgetReason()doublegetScore()static DetectionResultinjection(double score, String reason, String detector)booleanisInjection()StringtoString()
-
-
-
Field Detail
-
CLEAN
public static final DetectionResult CLEAN
-
-
Method Detail
-
clean
public static DetectionResult clean()
-
injection
public static DetectionResult injection(double score, String reason, String detector)
-
isInjection
public boolean isInjection()
-
getScore
public double getScore()
-
getReason
public String getReason()
-
getDetector
public String getDetector()
-
-