Class ThirdPartyAppService
java.lang.Object
io.github.xezzon.zeroweb.third_party_app.ThirdPartyAppService
- All Implemented Interfaces:
IThirdPartyAppService
,IThirdPartyAppService4Call
@Service
public class ThirdPartyAppService
extends Object
implements IThirdPartyAppService, IThirdPartyAppService4Call
- Author:
- xezzon
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionThirdPartyAppService
(ThirdPartyAppDAO thirdPartyAppDAO, AccessSecretRepository accessSecretRepository, io.github.xezzon.zeroweb.common.config.ZerowebConfig zerowebConfig) -
Method Summary
-
Field Details
-
ALGORITHM
- See Also:
-
-
Constructor Details
-
ThirdPartyAppService
public ThirdPartyAppService(ThirdPartyAppDAO thirdPartyAppDAO, AccessSecretRepository accessSecretRepository, io.github.xezzon.zeroweb.common.config.ZerowebConfig zerowebConfig)
-
-
Method Details
-
checkPermission
Description copied from interface:IThirdPartyAppService
检查当前人员是否有指定应用的权限- Specified by:
checkPermission
in interfaceIThirdPartyAppService
- Parameters:
appId
- 应用ID
-
signJwt
public String signJwt(String accessKey, byte[] body, String signature, Instant iat) throws InvalidAccessKeyException Description copied from interface:IThirdPartyAppService4Call
校验摘要,如果校验成功则签发JWT,否则抛出异常。- Specified by:
signJwt
in interfaceIThirdPartyAppService4Call
- Parameters:
accessKey
- AccessKeybody
- 消息内容signature
- 消息摘要iat
- 消息签发时间- Returns:
- 携带认证信息的JWT
- Throws:
InvalidAccessKeyException
- 如果摘要校验失败则抛出此异常
-