Modifier and Type | Class and Description |
---|---|
class |
EmailCode
邮件验证码
|
class |
ImageCode
图形验证码
|
class |
SmsCode
短信验证码
|
Modifier and Type | Method and Description |
---|---|
ValidateCode |
CodeGenerator.generate(org.springframework.web.context.request.ServletWebRequest servletWebRequest,
CodeProperties codeProperties)
生成验证码
|
Modifier and Type | Method and Description |
---|---|
ValidateCode |
EmailCodeGenerator.generate(org.springframework.web.context.request.ServletWebRequest servletWebRequest,
CodeProperties codeProperties) |
Modifier and Type | Method and Description |
---|---|
ValidateCode |
SimpleCodeProcessor.create(org.springframework.web.context.request.ServletWebRequest request,
CodeType codeType)
创建校验码并发送验证码
|
ValidateCode |
CodeProcessor.create(org.springframework.web.context.request.ServletWebRequest request,
CodeType codeType)
创建校验码并发送验证码
|
ValidateCode |
SimpleCodeProcessor.create(org.springframework.web.context.request.ServletWebRequest request,
String key,
CodeType codeType)
创建校验码并发送验证码
|
ValidateCode |
CodeProcessor.create(org.springframework.web.context.request.ServletWebRequest request,
String key,
CodeType codeType)
创建校验码并发送验证码
|
Modifier and Type | Method and Description |
---|---|
ValidateCode |
CodeRepository.get(String key)
根据验证码的唯一标识符获取存储的验证码
|
Modifier and Type | Method and Description |
---|---|
void |
CodeRepository.save(String key,
ValidateCode code)
存储验证码
|
Modifier and Type | Method and Description |
---|---|
ValidateCode |
SimpleCodeRepository.get(String key)
根据验证码的唯一标识符获取存储的验证码
|
ValidateCode |
RedisCodeRepository.get(String key)
根据验证码的唯一标识符获取存储的验证码
|
Modifier and Type | Method and Description |
---|---|
void |
SimpleCodeRepository.save(String key,
ValidateCode code)
存储验证码
|
void |
RedisCodeRepository.save(String key,
ValidateCode code)
存储验证码
|
Modifier and Type | Method and Description |
---|---|
<T extends ValidateCode> |
CodeSender.send(org.springframework.web.context.request.ServletWebRequest request,
String target,
T code)
发送验证码到指定的目标
|
Modifier and Type | Method and Description |
---|---|
<T extends ValidateCode> |
EmailCodeSender.send(org.springframework.web.context.request.ServletWebRequest request,
String target,
T code) |
<T extends ValidateCode> |
ImageCodeSender.send(org.springframework.web.context.request.ServletWebRequest request,
String target,
T code) |
<T extends ValidateCode> |
SmsCodeSender.send(org.springframework.web.context.request.ServletWebRequest request,
String target,
T code) |
Copyright © 2021. All rights reserved.