Class AuthInterceptor
java.lang.Object
org.a2aproject.sdk.client.transport.spi.interceptors.ClientCallInterceptor
org.a2aproject.sdk.client.transport.spi.interceptors.auth.AuthInterceptor
An interceptor that automatically adds authentication details to requests
based on the agent's security schemes and the credentials available.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
AUTHORIZATION
- See Also:
-
-
Constructor Details
-
AuthInterceptor
-
-
Method Details
-
intercept
public PayloadAndHeaders intercept(String methodName, @Nullable Object payload, Map<String, String> headers, @Nullable org.a2aproject.sdk.spec.AgentCard agentCard, @Nullable ClientCallContext clientCallContext) Description copied from class:ClientCallInterceptorIntercept a client call before the request is sent.- Specified by:
interceptin classClientCallInterceptor- Parameters:
methodName- the name of the protocol method (e.g., 'message/send')payload- the request payloadheaders- the headers to useagentCard- the agent card (may benull)clientCallContext- theClientCallContextfor this call (may benull)- Returns:
- the potentially modified payload and headers
-