gnu.crypto.der
Class DERWriter
public
class
DERWriter
extends Object
implements DER
Methods that allow various Java types to be written as a DER
(Distinguished Encoding Rules) stream to the specified output stream.
DER is used to encode ASN.1 constructions, but this class provides no
methods for interacting with ASN.1. Rather, callers should construct
their output objects properly for whatever ASN.1 construct is being
output.
This class only defines static methods; there are no instance
variables needed.
Author: Casey Marshall (rsdio@metastatic.org)
public static int definiteEncodingSize(int length)
public static int write(OutputStream out,
DERValue object)
static void writeLength(OutputStream out, int len)