Package org.apache.tomcat.util.net.jsse
Class PEMFile
java.lang.Object
org.apache.tomcat.util.net.jsse.PEMFile
-
Constructor Summary
ConstructorDescriptionPEMFile
(String filename, InputStream fileStream, String password, String keyAlgorithm) PEMFile
(String filename, InputStream fileStream, String password, String passwordFilename, InputStream passwordFileStream, String keyAlgorithm) -
Method Summary
-
Constructor Details
-
PEMFile
- Throws:
IOException
GeneralSecurityException
-
PEMFile
- Throws:
IOException
GeneralSecurityException
-
PEMFile
public PEMFile(String filename, String password, String keyAlgorithm) throws IOException, GeneralSecurityException - Throws:
IOException
GeneralSecurityException
-
PEMFile
public PEMFile(String filename, String password, String passwordFilename, String keyAlgorithm) throws IOException, GeneralSecurityException - Throws:
IOException
GeneralSecurityException
-
PEMFile
public PEMFile(String filename, InputStream fileStream, String password, String keyAlgorithm) throws IOException, GeneralSecurityException - Throws:
IOException
GeneralSecurityException
-
PEMFile
public PEMFile(String filename, InputStream fileStream, String password, String passwordFilename, InputStream passwordFileStream, String keyAlgorithm) throws IOException, GeneralSecurityException - Parameters:
filename
- the filename to mention in error messages, not used for anything else.fileStream
- the stream containing the pem(s).password
- password to load the pem objects.passwordFilename
- the password filename to mention in error messages, not used for anything else.passwordFileStream
- stream containing the password to load the pem objects.keyAlgorithm
- the algorithm to help to know how to load the objects (guessed if null).- Throws:
IOException
- if input can't be read.GeneralSecurityException
- if input can't be parsed/loaded.
-
-
Method Details
-
toPEM
- Throws:
CertificateEncodingException
-
getCertificates
-
getPrivateKey
-