@Component public class CustomWrapHandler extends Object implements WrapHandler
| 构造器和说明 |
|---|
CustomWrapHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getAppSecret(String appKey) |
void |
isLegalTime(long timestamp) |
void |
isReplayAttack(String appKey,
long timestamp,
int nonce,
String signature) |
boolean |
verifySignature(String appKey,
WrapRequest<WrapData> request) |
public String getAppSecret(String appKey)
getAppSecret 在接口中 WrapHandlerpublic boolean verifySignature(String appKey, WrapRequest<WrapData> request)
verifySignature 在接口中 WrapHandlerpublic void isLegalTime(long timestamp)
isLegalTime 在接口中 WrapHandlerpublic void isReplayAttack(String appKey, long timestamp, int nonce, String signature)
isReplayAttack 在接口中 WrapHandlerCopyright © 2023. All rights reserved.