AS AgentScopeAPI 手册 / API Reference

EnvironmentApiKeyVerifier

@FunctionalInterface public interface EnvironmentApiKeyVerifier
源码Source io/agentscope/builder/web/auth/EnvironmentApiKeyVerifier.java:22–31

定义环境 API 键校验器契约的接口。位于 io.agentscope.builder.web.auth 包。核心成员包括 matches。

Verifies an Environment Worker API key against control-plane state. Implementations must not read control-plane tables from the data plane; call the CP internal API instead.

方法摘要Method Summary

方法Method说明Description
public boolean matches(String environmentId, String plaintextKey)
执行 `matches` 方法。
Performs the matches operation.

方法详情Method Detail

matches

public boolean matches(String environmentId, String plaintextKey)

执行 matches 方法。

Performs the matches operation.

参数Parameters
名称Name类型Type说明Description
environmentIdString环境标识(类型 `String`)。environment id from the request path
plaintextKeyString`X-Builder-Environment-Key`的值。value of `X-Builder-Environment-Key`
返回Returns boolean
返回布尔值,表示判断结果。true when the key is valid for the environment
源码Source io/agentscope/builder/web/auth/EnvironmentApiKeyVerifier.java:30
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.