public class AntCertificationUtil extends Object
| 构造器和说明 |
|---|
AntCertificationUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getAlipayPublicKey(String alipayPublicCertPath) |
static X509Certificate |
getCertFromContent(String certContent) |
static X509Certificate |
getCertFromPath(String certPath) |
static String |
getCertSN(X509Certificate cf) |
static String |
getRootCertSN(String rootCertContent)
获取根证书序列号
|
static String |
getRootCertSN(String rootCertContent,
String signType)
获取根证书序列号
|
static boolean |
isTrusted(String cert,
String rootCertContent)
验证证书的是否可信
|
public static boolean isTrusted(String cert, String rootCertContent)
cert - 需要验证的目标证书或者证书链rootCertContent - 可信根证书列表public static String getRootCertSN(String rootCertContent)
rootCertContent - public static String getRootCertSN(String rootCertContent, String signType)
rootCertContent - public static X509Certificate getCertFromPath(String certPath) throws AlipayApiException
certPath - 证书路径AlipayApiExceptionpublic static X509Certificate getCertFromContent(String certContent) throws AlipayApiException
public static String getCertSN(X509Certificate cf) throws AlipayApiException
public static String getAlipayPublicKey(String alipayPublicCertPath) throws AlipayApiException
Copyright © 2025. All rights reserved.