Class WarlockUserAuthnServiceDummy
-
- All Implemented Interfaces:
-
pro.fessional.wings.warlock.service.user.WarlockUserAuthnService
public class WarlockUserAuthnServiceDummy implements WarlockUserAuthnService
- Since:
2022-07-11
trydofor
-
-
Constructor Summary
Constructors Constructor Description WarlockUserAuthnServiceDummy()
-
Method Summary
Modifier and Type Method Description longcreate(long userId, @NotNull() WarlockUserAuthnService.Authn authn)create an auth for user, and return the authn id voidmodify(long userId, @NotNull() WarlockUserAuthnService.Authn authn)modify items(if not null) of authn voidrenew(long userId, @NotNull() WarlockUserAuthnService.Renew renew)renew password, expired, failedCount, etc. voiddander(long userId, boolean danger, @NotNull() Array<Enum<out Object>> authType)set user status to danger or not List<WarlockUserAuthnService.Item>list(long userId)list auth info of user -
-
Method Detail
-
create
long create(long userId, @NotNull() WarlockUserAuthnService.Authn authn)
create an auth for user, and return the authn id
- Parameters:
userId- user idauthn- authn- Returns:
id
-
modify
void modify(long userId, @NotNull() WarlockUserAuthnService.Authn authn)
modify items(if not null) of authn
- Parameters:
userId- user idauthn- items
-
renew
void renew(long userId, @NotNull() WarlockUserAuthnService.Renew renew)
renew password, expired, failedCount, etc. use default if null.
- Parameters:
userId- user idrenew- item to renew
-
dander
void dander(long userId, boolean danger, @NotNull() Array<Enum<out Object>> authType)
set user status to danger or not
- Parameters:
userId- userdanger- danger or notauthType- auth type to reset
-
list
@NotNull() List<WarlockUserAuthnService.Item> list(long userId)
list auth info of user
- Parameters:
userId- user- Returns:
auth info
-
-
-
-