类 BaseAuthApi<T extends BaseUser>
java.lang.Object
cool.scx.ext.auth.BaseAuthApi<T>
默认认证 api 推荐使用
也可以不用此 api 但需要将 自定义 AuthHandler 的实现中的方法清空
- 版本:
- 0.3.6
- 作者:
- scx567888
-
字段概要
字段修饰符和类型字段说明protected final BaseAuthHandler<T>aprotected final cool.scx.core.base.BaseModelService<T>a -
构造器概要
构造器限定符构造器说明protectedBaseAuthApi(BaseAuthHandler<T> authHandler, cool.scx.core.base.BaseModelService<T> userService) a -
方法概要
修饰符和类型方法说明cool.scx.mvc.vo.BaseVochangePasswordByAdmin(String newPassword, Long userID) cool.scx.mvc.vo.BaseVochangePasswordBySelf(String newPassword, String oldPassword) cool.scx.mvc.vo.BaseVochangeUserAvatar(String newAvatar) cool.scx.mvc.vo.BaseVochangeUsernameBySelf(String newUsername, String password) cool.scx.mvc.vo.BaseVoinfo(io.vertx.ext.web.RoutingContext routingContext) cool.scx.mvc.vo.BaseVocool.scx.mvc.vo.BaseVologinByThirdParty(String uniqueID, String accessToken, String accountType, io.vertx.ext.web.RoutingContext ctx) cool.scx.mvc.vo.BaseVologout(io.vertx.ext.web.RoutingContext routingContext) cool.scx.mvc.vo.BaseVocool.scx.mvc.vo.BaseVosignupByThirdParty(String uniqueID, String accessToken, String accountType)
-
字段详细资料
-
authHandler
a -
userService
a
-
-
构造器详细资料
-
BaseAuthApi
protected BaseAuthApi(BaseAuthHandler<T> authHandler, cool.scx.core.base.BaseModelService<T> userService) a- 参数:
authHandler- auserService- a
-
-
方法详细资料
-
login
-
loginByThirdParty
-
signup
-
signupByThirdParty
-
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
-