public class PrivateKeyReader
Class for reading RSA private key from PEM file content
It can read PEM file contents with PKCS#8 or PKCS#1 encodings. It doesn't support encrypted PEM file content.Modifiers | Name | Description |
---|---|---|
static String |
P1_BEGIN_MARKER |
|
static String |
P1_END_MARKER |
|
static String |
P8_BEGIN_MARKER |
|
static String |
P8_END_MARKER |
Type Params | Return Type | Name and description |
---|---|---|
|
public static PrivateKey |
getPrivateKey(String keyFileContent) Get a Private Key from key file content. |
|
public static PrivateKey |
getPrivateKey(InputStream stream) Get a Private Key from InputStream. |
Get a Private Key from key file content.
keyFileContent
- private key file contentGet a Private Key from InputStream.
stream
- InputStream object