gnu.crypto.der
Class DERWriter
java.lang.Object
gnu.crypto.der.DERWriter
- All Implemented Interfaces:
- DER
- 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)
Fields inherited from interface gnu.crypto.der.DER |
ANY, APPLICATION, BIT_STRING, BMP_STRING, BOOLEAN, CONSTRUCTED, CONSTRUCTED_VALUE, CONTEXT, ENUMERATED, GENERAL_STRING, GENERALIZED_TIME, GRAPHIC_STRING, IA5_STRING, INTEGER, ISO646_STRING, NULL, NUMERIC_STRING, OBJECT_IDENTIFIER, OCTET_STRING, PRINTABLE_STRING, PRIVATE, REAL, RELATIVE_OID, SEQUENCE, SET, T61_STRING, UNIVERSAL, UNIVERSAL_STRING, UTC_TIME, UTF8_STRING, VIDEOTEX_STRING |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
write
public static int write(OutputStream out,
DERValue object)
throws IOException
- Throws:
IOException
definiteEncodingSize
public static int definiteEncodingSize(int length)
writeLength
static void writeLength(OutputStream out,
int len)
throws IOException
- Throws:
IOException
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.