Package com.tnsai.security
package com.tnsai.security
Security SPI contracts and human-in-the-loop approval for TnsAI agents.
This package holds the contracts the core depends on; the concrete
security implementations (enforcement, prompt-injection detection, content
moderation, input validation, encryption) live in tnsai-quality under
and are wired in through the SPI handles below.
invalid reference
com.tnsai.quality.security
Contents
SecurityException— typed security failure carrying aSecurityException.ViolationType.SecurityEnforcerHandle— SPI handle the runtime uses to reach the activeSecurityEnforcer(provided by tnsai-quality).PermissionProvider— SPI for action-permission lookups.audit— audit contracts (AuditStore,AuditEvent,AuditQuery); store implementations live incom.tnsai.quality.security.audit.approval— human-in-the-loop approval tokens and the interrupt flow (ApprovalTokenStore,InterruptService).
- See Also:
-
ClassDescriptionCollects restrictions from the actual target hierarchy; no method-first security replacement.Shared dispatch entry to SecurityEnforcer.Immutable checked execution binding supplied to the existing security evaluator.Host-verified subject.Immutable execution restriction for reflected and dynamically registered tools.Trusted interaction provenance, separate from executing agent and executor principal.SPI for resolving agent permissions at runtime.SPI handle for security enforcement.Factory for creating SecurityEnforcerHandle instances.Base exception for security-related violations.Types of security violations.