证书工具

This commit is contained in:
cheney
2022-10-12 16:31:11 +08:00
parent 48a1aa828c
commit ee395aebee
3 changed files with 208 additions and 0 deletions
@@ -6,4 +6,24 @@ public class CertUtil {
public static String encodeBase64(byte[] data){
return new BASE64Encoder().encode( data );
}
/**
* 判断正式是否是国密证书
* @param cert 证书 base64 字符
* @return true 国密, false 非国密
*/
public static boolean isSM2Cert(String cert){
}
/**
* 判断 p7 是否是国密证书签的
* @param pkcs7 pkcs7
* @return true 国密, false 非国密
*/
public static boolean isSignedBySM2Cert( String pkcs7 ){
}
}