public final class PEMLoader extends Object
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 © 2022. All rights reserved.