ZOLOZ OSS依赖
2021-03-15 14:14:58 0 举报
oss改造
作者其他创作
大纲/内容
FileStorageService
+ get(FsGetRequest request)+ put(FsPutRequest request)
CredentialConfig
- KmsClient:kmsClient
+ getOssKey(String ossSecKeyName)+ getOssSecret(String ossSecKeyName)
BeanConfig
- AdapterProperties:adapterProperties
+ getKmsClient()
KmsClientImpl
- String:priKeyAlias- String:pubKeyAlias- KMSFacade:kmsFacade
+ fetchKey(String keyAlias)+ decrypt(byte[] cipherContent)+ encrypt(byte[] plainContent)+ decrypt(String cipherContent)+ encrypt(String plainContent)+ onlySign(byte[] plainContent)+ digestSign(byte[] plainContent)+ getKey(String alias)+ getUserAndPasswordCredential(String alias)
BaseConfig
- ApplicationContext:context
FaceStorageService
- TimeoutThreadPoolManager:faceStoreThreadPool
OSSAdaptor
FileStorageServiceOssImpl
- OssServiceClient:ossServiceClient
+ get(FsPutRequest request)+ syncPut(FsPutRequest request)+ getFileUrl(FsPutRequest request)
ZolozOssAdaptor
+ getStorageType()+ getServerSideEncryption()
ProductConfigService
AbstractAsyncFileStorageService
- TimeoutThreadPoolManager : timeoutThreadPoolManager
+ put(FsPutRequest request)+ syncPut(FsPutRequest request)+ asyncPut(FsPutRequest request)+ getFileUrl(FsPutRequest request)
FileStorageServiceLocalImpl
- AfsServiceClient:afsServiceClient
OssConfig
- List<OssAccessConfig>:buckets- String:defaultEndpoint- CredentialConfig:credentialConfig
+ getOssAdaptorMap()
KmsClient
${kms.private.key.name:zoloz-pri-key}priKeyAlias = \"zoloz-pri-key\"${kms.public.key.name:zoloz-pub-key}pubKeyAlias = \"zoloz-pub-key\"
FileStorageConfig
- Bucket:bucket
zoloz.oss.defaultEndpoint=oss-cn-shanghai-finance-1-internal.aliyuncs.comzoloz.oss.buckets[0].buckName=${com.zoloz.zprod.storage.bucket.face}zoloz.oss.buckets[0].secKeyName=zoss-face-sec-keyzoloz.oss.buckets[1].buckName=zoss-gonganzoloz.oss.buckets[1].secKeyName=zoss-gongan-sec-keyzoloz.oss.buckets[2].buckName=cn-shanghai-aliyun-cloudauthzoloz.oss.buckets[2].secKeyName=cn-shanghai-aliyun-cloudauth-sec-keyzoloz.oss.buckets[2].endpoint=oss-cn-shanghai.aliyuncs.comzoloz.oss.buckets[3].buckName=zoss-filezoloz.oss.buckets[3].secKeyName=service-account-sec-key
com.zoloz.zprod.storage.bucket.face=zoss-face
# file storage adapter.com.zoloz.adapter.storage.bean=fileStorageServiceOssImplcom.zoloz.adapter.storage.base=# reference source adaptercom.zoloz.adapter.source.authorities[0]=authoritySourceServiceProxyAntFinCloudImplcom.zoloz.adapter.source.authorities[1]=antCustviewSourceServiceCachecom.zoloz.adapter.source.reservations[0]=authoritySourceServiceRemoteAlipay# strategy adaptercom.zoloz.adapter.strategy=StrategyServiceBeggarImpl# cache adaptercom.zoloz.adapter.cache=ocsCacheServiceImpl# risk adaptercom.zoloz.adapter.risk=riskServiceMockImplcom.zoloz.adapter.kms=facade
UploadContent
UploadContentStorageService
FileStorageBeanConfig
+ getFileStorageThreadPool()+ getAfsServiceClient()+ getOssServiceClient()+ getFileStorageService()+ getStrategyService()+ getCacheService()+ getRiskService()
OssClientWrapper
- OSSClient:ossClient- String:bucketName
FaceConfigService
FileStorageServiceAfsImpl
+ get(FsPutRequest request)+ syncPut(FsPutRequest request)+ getFileUrl(FsPutRequest request)+ getFullPath(String filePath)+ getBasePath()
OssServiceClient
+ fetchFileContent(FsGetRequest fsGetRequest)+ storeFileContent(FsPutRequest request)
ProductConfigServiceImpl
- ConfigService:configService
+ getTimeout(String key)ctMetadata)
BaseZossWrapper
+ getStorageType()
0 条评论
下一页