COM.claymoresystems.cert
Class WrappedObject
public
class
WrappedObject
extends 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
Method Summary |
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 |
public WrappedObject()
public static byte[] base64Decode(String in)
public static String base64Encode(byte[] in)
public static boolean findObject(BufferedReader br, String end, StringBuffer type)
public static byte[] loadObject(BufferedReader rdr, String end, StringBuffer type)
public static byte[] readBlock(BufferedReader br)
Read a base64 encoded block up to an
-----END terminator, base64 decode it and return
public static void writeHeader(String type, BufferedWriter out)
public static void writeObject(byte[] object, String type, BufferedWriter out)
Write a base64 encoded block, and add the terminator
Copyright (c) 1999-2001 Claymore Systems, Inc., All Rights Reserved.