接口 UserAuthenticationService

所有已知实现类:
UserAuthenticationServiceImpl

public interface UserAuthenticationService
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final String
    授权常量
    static final long
    有效时间
    static final String
    获取登录参数
  • 方法概要

    修饰符和类型
    方法
    说明
    org.springframework.security.core.Authentication
    authenticate(String userName, String sessionId)
    身份权限验证
    void
    logout(jakarta.servlet.http.HttpServletRequest request)
    用户退出登录
    refreshTicket(jakarta.servlet.http.HttpServletRequest request)
    刷新 token
    refreshToken(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
    token 刷新
    ticket(String ticket, jakarta.servlet.http.HttpServletResponse response)
    票据认证
  • 字段详细资料

    • GRANT_TYPE

      static final String GRANT_TYPE
      获取登录参数
      另请参阅:
    • EFFECTIVE

      static final long EFFECTIVE
      有效时间
    • AUTHORIZATION

      static final String AUTHORIZATION
      授权常量
      另请参阅:
  • 方法详细资料

    • authenticate

      org.springframework.security.core.Authentication authenticate(String userName, String sessionId) throws org.springframework.security.core.AuthenticationException, IOException, jakarta.servlet.ServletException
      身份权限验证
      参数:
      userName - 用户名
      sessionId - 会话id
      返回:
      返回权限
      抛出:
      org.springframework.security.core.AuthenticationException - 权限异常
      jakarta.servlet.ServletException - 权限异常
      IOException - 权限异常
    • ticket

      SecurityUserEntity ticket(String ticket, jakarta.servlet.http.HttpServletResponse response) throws Exception
      票据认证
      参数:
      ticket - 票据
      response - 响应
      返回:
      返回用户信息
      抛出:
      Exception - IO异常信息
    • refreshTicket

      String refreshTicket(jakarta.servlet.http.HttpServletRequest request) throws GlobalException, UnsupportedEncodingException
      刷新 token
      参数:
      request - 响应
      返回:
      返回票据
      抛出:
      GlobalException - 异常信息
      UnsupportedEncodingException - 异常信息
    • refreshToken

      String refreshToken(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws GlobalException, UnsupportedEncodingException
      token 刷新
      参数:
      request - 请求
      response - 响应
      返回:
      返回最新 token
      抛出:
      GlobalException - 异常信息
      UnsupportedEncodingException - 异常信息
    • logout

      void logout(jakarta.servlet.http.HttpServletRequest request) throws GlobalException
      用户退出登录
      参数:
      request - 响应
      抛出:
      GlobalException - 异常信息