public class CertificatesManager
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
UPDATE_INTERVAL_MINUTE |
| Modifier and Type | Method and Description |
|---|---|
static CertificatesManager |
getInstance() |
Verifier |
getVerifier(java.lang.String merchantId)
获取商户号为merchantId的验签器
|
void |
putMerchant(java.lang.String merchantId,
Credentials credentials,
byte[] apiV3Key)
增加需要自动更新平台证书的商户信息
|
void |
stop()
停止自动更新平台证书,停止后无法再重新启动
|
protected static final int UPDATE_INTERVAL_MINUTE
public static CertificatesManager getInstance()
public void putMerchant(java.lang.String merchantId,
Credentials credentials,
byte[] apiV3Key)
throws java.io.IOException,
java.security.GeneralSecurityException,
HttpCodeException
merchantId - 商户号credentials - 认证器apiV3Key - APIv3密钥java.io.IOException - IO错误java.security.GeneralSecurityException - 通用安全错误HttpCodeException - HttpCode错误public void stop()
public Verifier getVerifier(java.lang.String merchantId) throws NotFoundException
merchantId - 商户号NotFoundException - merchantId/merchantCertificates/apiV3Key/credentials为空