Interface CertificateHandler
public interface CertificateHandler
证书处理器
-
Method Summary
Modifier and TypeMethodDescriptiongenerateCertificate(String certificate) 将证书从String转为X509CertificatevoidvalidateCertPath(X509Certificate certificate) * 验证证书链(不推荐验证,如果证书过期不及时更换会导致验证失败,从而影响业务)
-
Method Details
-
generateCertificate
将证书从String转为X509Certificate- Parameters:
certificate- 证书字符串- Returns:
- X509Certificate
-
validateCertPath
* 验证证书链(不推荐验证,如果证书过期不及时更换会导致验证失败,从而影响业务)- Parameters:
certificate- 微信支付平台证书- Throws:
ValidationException- 证书验证失败
-