public class PEMReader extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CERTIFICATE_X509_MARKER |
static String |
PRIVATE_PKCS1_MARKER |
static String |
PRIVATE_PKCS8_MARKER |
static String |
PUBLIC_X509_MARKER |
| Constructor and Description |
|---|
PEMReader(byte[] buffer) |
PEMReader(InputStream inStream) |
PEMReader(String fileName) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBeginMarker() |
byte[] |
getDerBytes() |
protected void |
readFile()
Read the PEM file and save the DER encoded octet stream and begin marker.
|
public static final String CERTIFICATE_X509_MARKER
public static final String PRIVATE_PKCS1_MARKER
public static final String PRIVATE_PKCS8_MARKER
public static final String PUBLIC_X509_MARKER
public PEMReader(byte[] buffer)
throws IOException
IOExceptionpublic PEMReader(InputStream inStream) throws IOException
IOExceptionpublic PEMReader(String fileName) throws IOException
IOExceptionpublic String getBeginMarker()
public byte[] getDerBytes()
protected void readFile()
throws IOException
IOExceptionCopyright © 2008–2017 Province of British Columbia. All rights reserved.