com.aiwiown.face.request.LiteTokenRequest Maven / Gradle / Ivy
package com.aiwiown.face.request;
import com.aiwiown.face.ApiMethod;
import com.aiwiown.face.ApiObject;
import com.aiwiown.face.ApiRequest;
import com.aiwiown.face.internal.util.RequestParamUtils;
import com.aiwiown.face.response.LiteTokenResponse;
import java.util.Map;
/**
*
* 此接口提供 FaceID Lite KYC验证服务,
* 通过此接口客户可以获得一个 token(token唯一且只能使用一次)。
* 接口同时还能帮助完成人脸比对,并在完成验证后自动将人脸比对结果返回,方便集成开发。
*
* LiteTokenRequest
* Date: 2020/4/23 0023
* Time: 15:17
*
* @author [email protected]
*/
public class LiteTokenRequest implements ApiRequest {
private static String apiUrl = "/lite/get_token";
private String bizContent;
private ApiObject bizModel = null;
@Override
public ApiMethod getApiMethod() {
return ApiMethod.POST;
}
@Override
public String getApiUrl() {
return apiUrl;
}
@Override
public Map getTextParams() throws IllegalAccessException {
return RequestParamUtils.getTextParams(this.bizModel);
}
@Override
public Map getByteArrayParams() throws IllegalAccessException {
return RequestParamUtils.getByteArrayParams(this.bizModel);
}
@Override
public String getApiVersion() {
return null;
}
@Override
public Class getResponseClass() {
return LiteTokenResponse.class;
}
@Override
public String getBizContent() {
return this.bizContent;
}
public void setBizModel(ApiObject bizModel) {
this.bizModel = bizModel;
}
@Override
public String signVersion() {
return null;
}
@Override
public String getSignInfo(String apiKey, String secretKey) throws Exception {
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy