public interface YopCredentialsProvider
| 限定符和类型 | 方法和说明 |
|---|---|
YopCredentials<?> |
getCredentials(String appKey,
String credentialType)
Returns Credentials which the caller can use to authorize an YOP request.
|
default String |
getDefaultAppKey()
单应用时,用于加载默认配置
多应用时,用于指定默认应用(自定义provider时,须覆盖实现)
|
default List<YopCertConfig> |
getIsvEncryptKey(String appKey)
已过时。
|
List<CertTypeEnum> |
getSupportCertTypes(String appKey)
根据appKey获取应用下可用密钥类型
|
YopCredentials<?> getCredentials(String appKey, String credentialType)
根据appKey与凭证类型(CertTypeEnum),加载可用凭证,用于Yop请求的认证 商户可根据自身情况将凭证信息存储在安全的地方,可通过缓存提升性能
appKey - appKey:应用标识credentialType - credentialType:凭证类型(CertTypeEnum)List<CertTypeEnum> getSupportCertTypes(String appKey)
appKey - 应用标识default String getDefaultAppKey()
@Deprecated default List<YopCertConfig> getIsvEncryptKey(String appKey)
appKey - 应用标识Copyright © 2023. All rights reserved.