public class Captcha extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_EXPIRE_TIME
验证码默认过期时长 180 秒
|
Constructor and Description |
---|
Captcha()
redis 反序列化需要默认构造方法
|
Captcha(String key,
String value) |
Captcha(String key,
String value,
int expireTime)
验证码构造
|
Modifier and Type | Method and Description |
---|---|
long |
getExpireAt() |
String |
getKey() |
String |
getValue() |
boolean |
isExpired() |
boolean |
notExpired() |
String |
toString() |
public static final int DEFAULT_EXPIRE_TIME
Copyright © 2018. All rights reserved.