| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--iaik.me.utils.PEM
Utility class to handle the ASCII compatible PEM format.
| Field Summary | |
static String | 
PEM_ID_CERTIFICATE
ID used for PEM encoded X.509 certificates.  | 
static String | 
PEM_ID_CERTIFICATE_REQUEST
ID used for PEM encoded certificate requests.  | 
static String | 
PEM_ID_ENCRYPTED_KEY
ID used for PEM encoded PKCS#8 encrypted private keys.  | 
| Constructor Summary | |
PEM(InputStream in)
Create a PEM object from an InputStream.  | 
|
PEM(Reader reader)
Create a PEM object from a Reader.  | 
|
| Method Summary | |
 byte[] | 
nextData()
Get the next PEM part.  | 
 InputStream | 
nextInputStream()
Get the next PEM part as a InputStream.  | 
static byte[] | 
toPEM(byte[] data,
      String id)
Convert the data to PEM format.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final String PEM_ID_CERTIFICATE
public static final String PEM_ID_CERTIFICATE_REQUEST
public static final String PEM_ID_ENCRYPTED_KEY
| Constructor Detail | 
public PEM(InputStream in)
    throws IOException
public PEM(Reader reader)
    throws IOException
| Method Detail | 
public byte[] nextData()
                throws IOException
public InputStream nextInputStream()
                            throws IOException
public static byte[] toPEM(byte[] data,
                           String id)
 Example: PEM.toPEM(cert.getEncoded(), PEM.PEM_ID_CERTIFICATE);
  | 
This Javadoc may contain text parts from IETF Internet Standard specifications, see copyright note) and RSA Data Security Public-Key Cryptography Standards (see copyright note). | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
 
 IAIK-JCE ME 3.04, (c) 2002 IAIK, (c) 2003 to 2006 Stiftung SIC