public class CustomSignService extends java.lang.Object implements SignService
ComposableSignService with
special handling for API body signature verification (/rest/api/ paths).
For ability, pms, wechat paths, the standard ComposableSignService handles verification using the RoutingExtractor and RoutingSignProvider.
For API paths, the request body must be parsed to extract APP_ID, TIMESTAMP, TRANS_ID,
TOKEN from the HEAD JSON object. This cannot be done in the standard extractor because
SignParameterExtractor.extract(org.springframework.http.HttpRequest) only
receives HttpRequest (no body access).
Corresponds to api-gateway's RestController.checkApiExterParams() logic.
| 构造器和说明 |
|---|
CustomSignService(ComposableSignService delegate) |
| 限定符和类型 | 方法和说明 |
|---|---|
VerifyResult |
signatureVerify(org.springframework.web.server.ServerWebExchange exchange)
Gets verifyResult.
|
VerifyResult |
signatureVerify(org.springframework.web.server.ServerWebExchange exchange,
java.lang.String requestBody)
Gets verifyResult.
|
public CustomSignService(ComposableSignService delegate)
public VerifyResult signatureVerify(org.springframework.web.server.ServerWebExchange exchange)
SignServicesignatureVerify 在接口中 SignServiceexchange - exchangepublic VerifyResult signatureVerify(org.springframework.web.server.ServerWebExchange exchange, java.lang.String requestBody)
SignServicesignatureVerify 在接口中 SignServiceexchange - exchangerequestBody - requestBodyCopyright © 2026 The Apache Software Foundation. All rights reserved.