public class PEMUtil
extends java.lang.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(java.io.File privateKeyFile,
char[] passphrase)
Read a single PEM-formatted key
|
static Key |
readKey(java.io.InputStream is,
char[] passphrase)
Read a single PEM-formatted key
|
public static Key readKey(java.io.InputStream is, char[] passphrase) throws java.io.IOException
is - input streampassphrase - passphrase protecting streamjava.io.IOException - if not successful because I/Opublic static Key readKey(java.io.File privateKeyFile, char[] passphrase) throws java.io.IOException
privateKeyFile - private key filepassphrase - passphrase for protected filejava.io.IOException - if not successfulpublic static Key readKey(byte[] keyBytes, char[] passphrase) throws java.io.IOException
keyBytes - data for keypassphrase - passphrasejava.io.IOException - if not successfulCopyright © 2013-2017. All Rights Reserved.