public class PEMFile extends Object
| Constructor and Description |
|---|
PEMFile(String filename) |
PEMFile(String filename,
String password) |
PEMFile(String filename,
String password,
String keyAlgorithm) |
| Modifier and Type | Method and Description |
|---|---|
List<X509Certificate> |
getCertificates() |
PrivateKey |
getPrivateKey() |
static String |
toPEM(X509Certificate certificate) |
public PEMFile(String filename) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionpublic PEMFile(String filename, String password) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionpublic PEMFile(String filename, String password, String keyAlgorithm) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionpublic static String toPEM(X509Certificate certificate) throws CertificateEncodingException
CertificateEncodingExceptionpublic List<X509Certificate> getCertificates()
public PrivateKey getPrivateKey()
Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.