类 SecurityCertificateController
java.lang.Object
com.cdkjframework.security.controller.SecurityCertificateController
@RestController
@RequestMapping("/security")
public class SecurityCertificateController
extends Object
安全认证接口
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void扫码完成接口void扫码确认接口voidlogout(jakarta.servlet.http.HttpServletRequest request) 用户退出登录refreshTicket(jakarta.servlet.http.HttpServletRequest request) 票据刷新refreshToken(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) token 刷新voidscanCode(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) 获取扫码二维码票据认证validate(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) 验证二维码是否已被扫码voidverificationCode(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) 获取验证码
-
构造器详细资料
-
SecurityCertificateController
public SecurityCertificateController()
-
-
方法详细资料
-
verificationCode
@GetMapping("/verify/code") public void verificationCode(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException 获取验证码- 参数:
request- 请求response- 响应- 抛出:
IOException- IO异常信息
-
scanCode
@GetMapping("/scan/qrcode.html") public void scanCode(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws Exception 获取扫码二维码- 参数:
request- 请求response- 响应- 抛出:
IOException- IO异常信息Exception
-
validate
@ResponseBody @GetMapping("/validate.html") public ResponseBuilder validate(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws Exception 验证二维码是否已被扫码- 参数:
request- 请求response- 响应- 抛出:
IOException- IO异常信息Exception
-
ticket
@ResponseBody @GetMapping("/ticket.html") public SecurityUserEntity ticket(@RequestParam("ticket") String ticket, jakarta.servlet.http.HttpServletResponse response) throws Exception 票据认证- 抛出:
IOException- IO异常信息Exception
-
refreshTicket
@ResponseBody @GetMapping("/refresh/ticket.html") public ResponseBuilder refreshTicket(jakarta.servlet.http.HttpServletRequest request) throws UnsupportedEncodingException, GlobalException 票据刷新- 参数:
request- 响应- 返回:
- 返回票据信息
- 抛出:
UnsupportedEncodingException- 异常信息GlobalException- 异常信息
-
refreshToken
@ResponseBody @GetMapping("/refresh/token.html") public ResponseBuilder refreshToken(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws UnsupportedEncodingException, GlobalException token 刷新- 参数:
request- 请求response- 响应- 返回:
- 返回票据信息
- 抛出:
UnsupportedEncodingException- 异常信息GlobalException- 异常信息
-
confirm
扫码确认接口 -
completed
@ResponseBody @PostMapping("/completed.html") public void completed(@RequestParam("username") String username, @RequestParam("id") String id) throws Exception 扫码完成接口- 参数:
username- 用户名id- ID- 抛出:
IOException- IO异常信息Exception
-
logout
@ResponseBody @PostMapping("/logout.html") public void logout(jakarta.servlet.http.HttpServletRequest request) throws GlobalException 用户退出登录- 参数:
request- 响应- 抛出:
GlobalException- 异常信息
-