COM.claymoresystems.cert
Class WrappedObject
java.lang.Object
COM.claymoresystems.cert.WrappedObject
public class WrappedObject
extends java.lang.Object
Utilities to read -----BEGIN style Base64 encoded objects
from files and the like. This is used to read what EAY
refers to as "PEM" keyfiles.
This class is used internally by PureTLS and should not
be called by programmers. We'll document it someday, though
static byte[] | base64Decode(String in)
|
static String | base64Encode(byte[] in)
|
static boolean | findObject(BufferedReader br, String end, StringBuffer type)
|
static byte[] | loadObject(BufferedReader rdr, String end, StringBuffer type)
|
static byte[] | readBlock(BufferedReader br) - Read a base64 encoded block up to an
-----END terminator, base64 decode it and return
|
static void | writeHeader(String type, BufferedWriter out)
|
static void | writeObject(byte[] object, String type, BufferedWriter out) - Write a base64 encoded block, and add the terminator
|
WrappedObject
public WrappedObject()
base64Decode
public static byte[] base64Decode(String in)
throws IOException
base64Encode
public static String base64Encode(byte[] in)
throws IOException
findObject
public static boolean findObject(BufferedReader br,
String end,
StringBuffer type)
throws IOException
loadObject
public static byte[] loadObject(BufferedReader rdr,
String end,
StringBuffer type)
throws IOException
readBlock
public static byte[] readBlock(BufferedReader br)
throws IOException
Read a base64 encoded block up to an
-----END terminator, base64 decode it and return
writeHeader
public static void writeHeader(String type,
BufferedWriter out)
throws IOException
writeObject
public static void writeObject(byte[] object,
String type,
BufferedWriter out)
throws IOException
Write a base64 encoded block, and add the terminator
Copyright (c) 1999-2001 Claymore Systems, Inc., All Rights Reserved.