Interface WarlockUserAuthnService
-
- All Implemented Interfaces:
public interface WarlockUserAuthnServiceuser login authn
- Since:
2021-03-25
trydofor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumWarlockUserAuthnService.Janepublic classWarlockUserAuthnService.Authnpublic classWarlockUserAuthnService.Renewpublic classWarlockUserAuthnService.Item
-
Method Summary
Modifier and Type Method Description abstract longcreate(long userId, @NotNull() WarlockUserAuthnService.Authn authn)create an auth for user, and return the authn id abstract voidmodify(long userId, @NotNull() WarlockUserAuthnService.Authn authn)modify items(if not null) of authn abstract voidrenew(long userId, @NotNull() WarlockUserAuthnService.Renew renew)renew password, expired, failedCount, etc. abstract voiddander(long userId, boolean danger, @NotNull() Array<Enum<out Object>> authType)set user status to danger or not voiddisable(long userId, @NotNull() Enum<out Object> authType)disable auth by type voidenable(long userId, @NotNull() Enum<out Object> authType, Duration expireIn)enable auth by type abstract List<WarlockUserAuthnService.Item>list(long userId)list auth info of user -
-
Method Detail
-
create
abstract 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
abstract void modify(long userId, @NotNull() WarlockUserAuthnService.Authn authn)
modify items(if not null) of authn
- Parameters:
userId- user idauthn- items
-
renew
abstract 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
abstract 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
-
disable
void disable(long userId, @NotNull() Enum<out Object> authType)
disable auth by type
- Parameters:
userId- user idauthType- auth type
-
enable
void enable(long userId, @NotNull() Enum<out Object> authType, Duration expireIn)
enable auth by type
- Parameters:
userId- user idauthType- auth typeexpireIn- expired duration from now
-
list
@NotNull() abstract List<WarlockUserAuthnService.Item> list(long userId)
list auth info of user
- Parameters:
userId- user- Returns:
auth info
-
-
-
-