public class AuthzDefender extends Object
| 构造器和说明 |
|---|
AuthzDefender(UserDevicesDict userDevicesDict,
PermissionDict permissionDict,
PermLibrary permLibrary) |
| 限定符和类型 | 方法和说明 |
|---|---|
TokenPair |
grant(Object userId,
String deviceType,
String deviceId) |
static void |
init(AuthzDefender authzDefender) |
static void |
logs(String status,
HttpMeta httpMeta,
PermRolesMeta meta) |
TokenPair |
refreshToken(String refreshToken)
access过期刷新接口
如果使用单token,则直接使用accessToken即可,在accessToken过期时再重新登录。
|
static AuthzDefender |
self() |
ExceptionStatus |
verify(HttpMeta httpMeta)
合法性判断
|
public AuthzDefender(UserDevicesDict userDevicesDict, PermissionDict permissionDict, PermLibrary permLibrary)
public static AuthzDefender self()
public static void init(AuthzDefender authzDefender)
public TokenPair grant(Object userId, String deviceType, String deviceId)
userId - 用户iddeviceType - 设备系统类型deviceId - 设备idpublic TokenPair refreshToken(String refreshToken)
refreshToken - 与accessToken一起授予的refreshTokenpublic ExceptionStatus verify(HttpMeta httpMeta)
httpMeta - httpMetapublic static void logs(String status, HttpMeta httpMeta, PermRolesMeta meta)
Copyright © 2022. All rights reserved.