org.apache.directory.shared.asn1.der
Class DERSequence

java.lang.Object
  extended byorg.apache.directory.shared.asn1.der.DERSequence
All Implemented Interfaces:
DEREncodable
Direct Known Subclasses:
BERSequence

public class DERSequence
extends java.lang.Object
implements DEREncodable


Field Summary
private  java.util.Vector v
           
 
Constructor Summary
DERSequence()
           
 
Method Summary
 void add(DEREncodable obj)
           
 void encode(ASN1OutputStream out)
          As DER requires the constructed, definite-length model to be used for structured types, this varies slightly from the ASN.1 descriptions given.
 DEREncodable get(int i)
           
 java.util.Enumeration getObjects()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

v

private java.util.Vector v
Constructor Detail

DERSequence

public DERSequence()
Method Detail

add

public void add(DEREncodable obj)

getObjects

public java.util.Enumeration getObjects()

get

public DEREncodable get(int i)

size

public int size()

encode

public void encode(ASN1OutputStream out)
            throws java.io.IOException
As DER requires the constructed, definite-length model to be used for structured types, this varies slightly from the ASN.1 descriptions given. Rather than just outputing SEQUENCE, we also have to specify CONSTRUCTED, and the objects length.

Specified by:
encode in interface DEREncodable
Throws:
java.io.IOException


Copyright © 2003-2006 . All Rights Reserved.