public class PemObjectReader extends Object
PemObjectReader is a utility class for reading PemObject from a file.| Constructor and Description |
|---|
PemObjectReader() |
| Modifier and Type | Method and Description |
|---|---|
static org.bouncycastle.util.io.pem.PemObject |
getPemObject(File file)
Gets the pem object.
|
static PrivateKey |
readPemPrivateKey(File keyFile,
String password)
Reads the given
File( in *.pem format) that contains a password protected private
key. |
static String |
toPemFormat(org.bouncycastle.util.io.pem.PemObject pemObject)
Transform the given
PemObject object in pem format String object. |
public static org.bouncycastle.util.io.pem.PemObject getPemObject(File file) throws IOException
file - the fileIOException - Signals that an I/O exception has occurred.public static PrivateKey readPemPrivateKey(File keyFile, String password) throws IOException
File( in *.pem format) that contains a password protected private
key.keyFile - the file with the password protected private keypassword - the passwordPrivateKey objectIOException - Signals that an I/O exception has occurred.public static String toPemFormat(org.bouncycastle.util.io.pem.PemObject pemObject) throws IOException
PemObject object in pem format String object.pemObject - the pem objectIOException - Signals that an I/O exception has occurred.Copyright © 2015–2019 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.