类 BaseAuthApi<T extends BaseUser>

java.lang.Object
cool.scx.ext.auth.BaseAuthApi<T>

public abstract class BaseAuthApi<T extends BaseUser> extends Object
默认认证 api 推荐使用 也可以不用此 api 但需要将 自定义 AuthHandler 的实现中的方法清空
版本:
0.3.6
作者:
scx567888
  • 字段详细资料

    • authHandler

      protected final BaseAuthHandler<T extends BaseUser> authHandler
      a
    • userService

      protected final cool.scx.core.base.BaseModelService<T extends BaseUser> userService
      a
  • 构造器详细资料

    • BaseAuthApi

      protected BaseAuthApi(BaseAuthHandler<T> authHandler, cool.scx.core.base.BaseModelService<T> userService)
      a
      参数:
      authHandler - a
      userService - a
  • 方法详细资料

    • login

      public cool.scx.mvc.vo.BaseVo login(String username, String password, io.vertx.ext.web.RoutingContext ctx)
    • loginByThirdParty

      public cool.scx.mvc.vo.BaseVo loginByThirdParty(String uniqueID, String accessToken, String accountType, io.vertx.ext.web.RoutingContext ctx)
    • signup

      public cool.scx.mvc.vo.BaseVo signup(String username, String password)
    • signupByThirdParty

      public cool.scx.mvc.vo.BaseVo signupByThirdParty(String uniqueID, String accessToken, String accountType)
    • logout

      public cool.scx.mvc.vo.BaseVo logout(io.vertx.ext.web.RoutingContext routingContext)
    • info

      public cool.scx.mvc.vo.BaseVo info(io.vertx.ext.web.RoutingContext routingContext) throws cool.scx.mvc.exception.UnauthorizedException
      抛出:
      cool.scx.mvc.exception.UnauthorizedException
    • changeUserAvatar

      public cool.scx.mvc.vo.BaseVo changeUserAvatar(String newAvatar) throws cool.scx.mvc.exception.UnauthorizedException
      抛出:
      cool.scx.mvc.exception.UnauthorizedException
    • changeUsernameBySelf

      public cool.scx.mvc.vo.BaseVo changeUsernameBySelf(String newUsername, String password) throws cool.scx.mvc.exception.UnauthorizedException
      抛出:
      cool.scx.mvc.exception.UnauthorizedException
    • changePasswordBySelf

      public cool.scx.mvc.vo.BaseVo changePasswordBySelf(String newPassword, String oldPassword) throws cool.scx.mvc.exception.UnauthorizedException
      抛出:
      cool.scx.mvc.exception.UnauthorizedException
    • changePasswordByAdmin

      public cool.scx.mvc.vo.BaseVo changePasswordByAdmin(String newPassword, Long userID)