类 AuthSDK
java.lang.Object
com.infilake.openapi.bidding.AuthSDK
Infilake OpenAPI Auth SDK
SDK for generating HMAC-SHA256 authorization headers
-
嵌套类概要
嵌套类 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static StringGenerate timestamp in format: YYYYMMDDTHHMMSSZgetHeaders(String signUrl, String requestAction) Generate headers map ready for HTTP requestGenerate authorization signature
-
构造器详细资料
-
AuthSDK
Initialize AuthSDK with HMAC secret- 参数:
hmacSecret- The HMAC secret key
-
-
方法详细资料
-
generateTimestamp
Generate timestamp in format: YYYYMMDDTHHMMSSZ- 返回:
- Formatted timestamp string
-
sign
Generate authorization signature- 参数:
signUrl- The URL to signrequestAction- HTTP method (default: GET)- 返回:
- AuthResult with timestamp and authorization
-
getHeaders
Generate headers map ready for HTTP request- 参数:
signUrl- The URL to signrequestAction- HTTP method (default: GET)- 返回:
- Map with X-Timestamp and X-Authorization headers
-