public class PEMUtil extends Object
| Constructor and Description |
|---|
PEMUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Key |
readKey(byte[] keyBytes,
char[] passphrase)
Read a single PEM-formatted key
|
static Key |
readKey(File privateKeyFile,
char[] passphrase)
Read a single PEM-formatted key
|
static Key |
readKey(InputStream is,
char[] passphrase)
Read a single PEM-formatted key
|
public static Key readKey(InputStream is, char[] passphrase) throws IOException
is - passphrase - IOExceptionpublic static Key readKey(File privateKeyFile, char[] passphrase) throws IOException
privateKeyFile - passphrase - IOExceptionpublic static Key readKey(byte[] keyBytes, char[] passphrase) throws IOException
keyBytes - passphrase - IOExceptionCopyright © 2013. All Rights Reserved.