类 DefaultJwtManager
java.lang.Object
com.onlyoffice.manager.security.DefaultJwtManager
- 所有已实现的接口:
JwtManager
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明createToken(Object object) Creates a new JWT for the specified object using the key fromSettingsManager.createToken(Object object, String key) Creates a new JWT for the specified object.createToken(Map<String, ?> payloadMap, String secret) Creates a new JWT for the specified payload map.voidsetSettingsManager(SettingsManager settingsManager) Performs the verification against the given token using the key fromSettingsManager.verifyToken(String token, String key) Performs the verification against the given token using the key passed as a method parameter.
-
构造器详细资料
-
DefaultJwtManager
-
-
方法详细资料
-
getSettingsManager
-
setSettingsManager
-
createToken
从接口复制的说明:JwtManagerCreates a new JWT for the specified object using the key fromSettingsManager.- 指定者:
createToken在接口中JwtManager- 参数:
object- The object to create JWT.- 返回:
- A new JWT token.
- 另请参阅:
-
createToken
从接口复制的说明:JwtManagerCreates a new JWT for the specified object. The key is passed as a method parameter.- 指定者:
createToken在接口中JwtManager- 参数:
object- The object to create JWT.key- The secret key value.- 返回:
- A new JWT token.
-
createToken
从接口复制的说明:JwtManagerCreates a new JWT for the specified payload map. The key is passed as a method parameter.- 指定者:
createToken在接口中JwtManager- 参数:
payloadMap- The payload map to create JWT.secret- The secret key value.- 返回:
- A new JWT token.
-
verify
从接口复制的说明:JwtManagerPerforms the verification against the given token using the key fromSettingsManager.- 指定者:
verify在接口中JwtManager- 参数:
token- The token to be verified.- 返回:
- The verified and decoded payload.
- 另请参阅:
-
verifyToken
从接口复制的说明:JwtManagerPerforms the verification against the given token using the key passed as a method parameter.- 指定者:
verifyToken在接口中JwtManager- 参数:
token- The token to be verified.key- The secret key value.- 返回:
- The verified and decoded payload.
-