public abstract class CaptchaSender
extends java.lang.Object
构造器和说明 |
---|
CaptchaSender() |
限定符和类型 | 方法和说明 |
---|---|
abstract boolean |
acceptType(java.lang.String type)
是否支持接收器
|
static CaptchaSender |
createCaptchaSender(java.lang.String type)
根据用户生成验证码发送器
|
abstract java.util.List<java.lang.String> |
getReceiveUserNames(java.lang.String receiver)
获取接收验证码的用户名列表
|
static void |
registerCaptchaSenders(CaptchaSender captchaSender)
注册验证码发送器
|
static void |
reset() |
abstract void |
sendCaptcha(java.lang.String receiver,
java.lang.String captcha)
发送验证码
|
public static void registerCaptchaSenders(CaptchaSender captchaSender) throws java.lang.IllegalArgumentException
captchaSender
- 发送服务java.lang.IllegalArgumentException
- 异常public static CaptchaSender createCaptchaSender(java.lang.String type) throws java.lang.Exception
type
- 接收器类型java.lang.Exception
- 异常public static void reset()
public abstract void sendCaptcha(java.lang.String receiver, java.lang.String captcha) throws java.lang.Exception
receiver
- 接收者号码captcha
- 验证码java.lang.Exception
- 异常public abstract boolean acceptType(java.lang.String type) throws java.lang.Exception
type
- 类型java.lang.Exception
- 异常public abstract java.util.List<java.lang.String> getReceiveUserNames(java.lang.String receiver) throws java.lang.Exception
receiver
- 号码java.lang.Exception
- 异常