public abstract class YopBasePlatformCredentialsProvider extends Object implements YopPlatformCredentialsProvider
| 限定符和类型 | 字段和说明 |
|---|---|
protected Map<String,YopPlatformCredentials> |
credentialsMap
serialNo -> YopPlatformCredentials
|
protected static org.slf4j.Logger |
LOGGER |
| 构造器和说明 |
|---|
YopBasePlatformCredentialsProvider() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCredentials, storeCredentialsprotected static final org.slf4j.Logger LOGGER
protected Map<String,YopPlatformCredentials> credentialsMap
public YopPlatformCredentials getCredentials(String appKey, String serialNo)
getCredentials 在接口中 YopPlatformCredentialsProviderpublic YopPlatformCredentials getCredentials(String appKey, String serialNo, String serverRoot)
getCredentials 在接口中 YopPlatformCredentialsProviderpublic YopPlatformCredentials getCredentials(String provider, String env, String appKey, String serialNo, String serverRoot)
getCredentials 在接口中 YopPlatformCredentialsProviderprotected abstract YopPlatformCredentials loadCredentialsFromStore(String appKey, String serialNo)
appKey - 应用标识serialNo - 证书序列号(长度为10的16进制字符串)protected YopPlatformCredentials loadCredentialsFromStore(String provider, String env, String appKey, String serialNo)
protected X509Certificate loadRemoteSm2Cert(String appKey, String serialNo)
appKey - 应用标识serialNo - 证书序列号(长度为10的16进制字符串)protected X509Certificate loadRemoteSm2Cert(String appKey, String serialNo, String serverRoot)
appKey - 应用标识serialNo - 证书序列号(长度为10的16进制字符串)serverRoot - 平台证书请求端点protected X509Certificate loadRemoteSm2Cert(String provider, String env, String appKey, String serialNo, String serverRoot)
protected X509Certificate loadLocalRsaCert(String appKey, String serialNo)
appKey - 应用标识serialNo - 证书序列号(长度为10的16进制字符串)protected X509Certificate loadLocalRsaCert(String provider, String env, String appKey, String serialNo)
protected PublicKey loadLocalRsaKey(String provider, String env, String appKey, String serialNo)
public YopPlatformCredentials getLatestCredentials(String appKey, String credentialType)
public YopPlatformCredentials getLatestCredentials(String appKey, String credentialType, String serverRoot)
public YopPlatformCredentials getLatestCredentials(String provider, String env, String appKey, String credentialType, String serverRoot)
public YopPlatformCredentials storeCredentials(String provider, String env, String appKey, String credentialType, X509Certificate certificate)
protected YopPlatformCredentials convertCredentials(String appKey, String credentialType, X509Certificate cert)
credentialType - 凭证类型cert - 证书protected YopPlatformCredentials convertCredentials(String appKey, String credentialType, PublicKey publicKey, String keyId)
appKey - 应用credentialType - 密钥类型publicKey - 公钥keyId - 凭证标识Copyright © 2024. All rights reserved.