Uses of Class
com.tnsai.security.approval.ApprovalToken
Packages that use ApprovalToken
Package
Description
Human-in-the-loop (HITL) approval mechanism for sensitive agent actions.
-
Uses of ApprovalToken in com.tnsai.security.approval
Methods in com.tnsai.security.approval that return ApprovalTokenModifier and TypeMethodDescriptionApprovalToken.Builder.build()Builds the token.static ApprovalTokenCreates a simple token.ApprovalTokenStore.createToken(String agentId, String actionName, Duration ttl) Creates a new approval token.ApprovalTokenStore.createToken(String agentId, String actionName, Map<String, Object> parameters, Duration ttl) Creates a token with parameters.InMemoryApprovalTokenStore.createToken(String agentId, String actionName, Duration ttl) InMemoryApprovalTokenStore.createToken(String agentId, String actionName, Map<String, Object> parameters, Duration ttl) Methods in com.tnsai.security.approval that return types with arguments of type ApprovalTokenModifier and TypeMethodDescriptionInMemoryApprovalTokenStore.getAll()Gets all tokens (for testing/debugging).Gets a token by ID.ApprovalTokenStore.listPending()Lists pending tokens.InMemoryApprovalTokenStore.listPending()ApprovalTokenStore.listPendingForAgent(String agentId) Lists pending tokens for a specific agent.InMemoryApprovalTokenStore.listPendingForAgent(String agentId) Methods in com.tnsai.security.approval with parameters of type ApprovalTokenModifier and TypeMethodDescriptionvoidApprovalTokenStore.save(ApprovalToken token) Saves a token to the store.voidInMemoryApprovalTokenStore.save(ApprovalToken token)