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
IOException
GeneralSecurityException
public PEMFile(String filename, String password) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
public PEMFile(String filename, String password, String keyAlgorithm) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
public static String toPEM(X509Certificate certificate) throws CertificateEncodingException
CertificateEncodingException
public List<X509Certificate> getCertificates()
public PrivateKey getPrivateKey()
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.