public final class PEMLoader extends Object
| Constructor and Description |
|---|
PEMLoader() |
| Modifier and Type | Method and Description |
|---|---|
static Certificate |
loadCert(Path in)
从PEM文件中加载的国密 SM2证书
|
static PrivateKey |
loadPrivateKey(Path in)
从PEM文件中加载明文的SM2私钥
|
public static PrivateKey loadPrivateKey(Path in) throws IOException, GeneralSecurityException
in - PEM文件位置IOException - 文件读写异常GeneralSecurityException - 密钥解析异常public static Certificate loadCert(Path in) throws IOException, GeneralSecurityException
in - PEM文件位置IOException - 文件读写异常GeneralSecurityException - 密钥解析异常Copyright © 2026. All rights reserved.