类 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.core.vo.BaseVochangePasswordByAdmin(String newPassword, Long userID) changePasswordByAdminUser.cool.scx.core.vo.BaseVochangePasswordBySelf(String newPassword, String oldPassword) changeUserPassword.cool.scx.core.vo.DataJsonchangeUserAvatar(String newAvatar) changeUserAvatar.cool.scx.core.vo.BaseVochangeUsernameBySelf(String newUsername, String password) changeUserUsername.cool.scx.core.vo.BaseVoinfo(io.vertx.ext.web.RoutingContext routingContext) info.cool.scx.core.vo.BaseVologin.cool.scx.core.vo.BaseVologinByThirdParty(String uniqueID, String accessToken, String accountType, io.vertx.ext.web.RoutingContext ctx) loginByThirdParty.cool.scx.core.vo.Jsonlogout(io.vertx.ext.web.RoutingContext routingContext) logout.cool.scx.core.vo.BaseVosignup.cool.scx.core.vo.BaseVosignupByThirdParty(String uniqueID, String accessToken, String accountType) signupByThirdParty.
-
字段详细资料
-
authHandler
a -
userService
a
-
-
构造器详细资料
-
BaseAuthApi
protected BaseAuthApi(BaseAuthHandler<T> authHandler, cool.scx.core.base.BaseModelService<T> userService) a- 参数:
authHandler- auserService- a
-
-
方法详细资料
-
login
public cool.scx.core.vo.BaseVo login(String username, String password, io.vertx.ext.web.RoutingContext ctx) login.
-
loginByThirdParty
public cool.scx.core.vo.BaseVo loginByThirdParty(String uniqueID, String accessToken, String accountType, io.vertx.ext.web.RoutingContext ctx) loginByThirdParty.
-
signup
signup.
-
signupByThirdParty
public cool.scx.core.vo.BaseVo signupByThirdParty(String uniqueID, String accessToken, String accountType) signupByThirdParty.
-
logout
public cool.scx.core.vo.Json logout(io.vertx.ext.web.RoutingContext routingContext) logout.
- 参数:
routingContext- aRoutingContextobject- 返回:
- a
Jsonobject
-
info
public cool.scx.core.vo.BaseVo info(io.vertx.ext.web.RoutingContext routingContext) throws cool.scx.core.http.exception.UnauthorizedException info.
- 参数:
routingContext- aRoutingContextobject- 返回:
- a
BaseVoobject - 抛出:
cool.scx.core.http.exception.UnauthorizedException- if any.
-
changeUserAvatar
public cool.scx.core.vo.DataJson changeUserAvatar(String newAvatar) throws cool.scx.core.http.exception.UnauthorizedException changeUserAvatar.
- 参数:
newAvatar- aStringobject- 返回:
- a
DataJsonobject - 抛出:
cool.scx.core.http.exception.UnauthorizedException- if any.
-
changeUsernameBySelf
public cool.scx.core.vo.BaseVo changeUsernameBySelf(String newUsername, String password) throws cool.scx.core.http.exception.UnauthorizedException changeUserUsername.
-
changePasswordBySelf
public cool.scx.core.vo.BaseVo changePasswordBySelf(String newPassword, String oldPassword) throws cool.scx.core.http.exception.UnauthorizedException changeUserPassword.
-
changePasswordByAdmin
changePasswordByAdminUser.
-