类 SecurityCertificateController

java.lang.Object
com.cdkjframework.security.controller.SecurityCertificateController

@RestController @RequestMapping("/security") public class SecurityCertificateController extends Object
安全认证接口
  • 构造器详细资料

    • 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

      @ResponseBody @GetMapping("/confirm.html") public void confirm(@RequestParam("id") String id)
      扫码确认接口
    • 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 - 异常信息