public class CaptchaAPI extends BaseAPI
| 限定符和类型 | 方法和说明 |
|---|---|
ApiResponse |
check(Map<String,String> args)
验证验证码票据
IFrame接入请使用该方法校验用户输入的验证码
|
static CaptchaAPI |
getInstance() |
static CaptchaAPI |
getInstance(String url,
String id,
String key) |
ApiResponse |
getJsUrl(Map<String,String> args)
获取JS Url
IFrame接入请使用该方法拉取js url
|
public static CaptchaAPI getInstance()
public static CaptchaAPI getInstance(String url, String id, String key)
public ApiResponse check(Map<String,String> args) throws InvalidKeyException, NoSuchAlgorithmException, UnsupportedEncodingException
args - 用户输入票据InvalidKeyException - 抛出异常NoSuchAlgorithmException - 抛出异常UnsupportedEncodingException - 抛出异常public ApiResponse getJsUrl(Map<String,String> args) throws InvalidKeyException, NoSuchAlgorithmException, UnsupportedEncodingException
args - 用户输入票据InvalidKeyException - 抛出异常NoSuchAlgorithmException - 抛出异常UnsupportedEncodingException - 抛出异常Copyright © 2018. All rights reserved.