Class ShellSessionManager.PatternRedactionRule
java.lang.Object
com.alibaba.cloud.ai.graph.agent.tools.ShellSessionManager.PatternRedactionRule
- All Implemented Interfaces:
ShellSessionManager.RedactionRule
- Enclosing class:
- ShellSessionManager
public static class ShellSessionManager.PatternRedactionRule
extends Object
implements ShellSessionManager.RedactionRule
Simple pattern-based redaction rule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyWithMatches(String content) Apply redaction to content and return redacted content with matches.Get the PII type this rule detects.
-
Constructor Details
-
PatternRedactionRule
-
-
Method Details
-
applyWithMatches
Description copied from interface:ShellSessionManager.RedactionRuleApply redaction to content and return redacted content with matches.- Specified by:
applyWithMatchesin interfaceShellSessionManager.RedactionRule
-
getPiiType
Description copied from interface:ShellSessionManager.RedactionRuleGet the PII type this rule detects.- Specified by:
getPiiTypein interfaceShellSessionManager.RedactionRule
-