ch.othello.openscep.internal
Class PEMReader
java.lang.Object
|
+--ch.othello.openscep.internal.PEMReader
- public class PEMReader
- extends Object
Scep Client
$Id: PEMReader.java,v 1.7 2002/02/15 06:11:09 urut Exp $
$Log: PEMReader.java,v $
Revision 1.7 2002/02/15 06:11:09 urut
merge with alani
lots of mods for incorporating full support for HTTP communication with SCEPD; Httpd client is now capable of reading multipart-mime (sort of....??) messages
Revision 1.6 2002/02/14 17:58:56 urut
syntax error removed
- Since:
- $Date: 2002/02/15 06:11:09 $
- Version:
- $Revision: 1.7 $
- Author:
- urut
Constructor Summary |
PEMReader()
Creates a new instance of PEMReader |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PEMReader
public PEMReader()
- Creates a new instance of PEMReader
readFile
public static org.bouncycastle.asn1.DERObject readFile(String filename)
throws FileNotFoundException,
IOException
- reads a PEM file and returns it as DERObject
- Parameters:
filename
- PEM File with full path
- Returns:
- DERObject (content of File)
- Throws:
FileNotFoundException
IOException
readStream
public static org.bouncycastle.asn1.DERObject readStream(InputStream in)
throws IOException
IOException
readString
public static org.bouncycastle.asn1.DERObject readString(String in)
throws IOException
IOException
decodeBase64DER
public static org.bouncycastle.asn1.DERObject decodeBase64DER(String base64Input)
throws IOException
IOException
decodeBase64DER
public static org.bouncycastle.asn1.DERObject decodeBase64DER(byte[] base64Input)
throws IOException
IOException
removeLinefeeds
public static byte[] removeLinefeeds(byte[] in)
throws IOException
IOException
ScepClient is copyright by Ueli Rutishauser + Alain Schaefer