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

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

public class DERSequence
extends Object
implements DEREncodable


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)
           
 Enumeration getObjects()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DERSequence

public DERSequence()
Method Detail

add

public void add(DEREncodable obj)

getObjects

public Enumeration getObjects()

get

public DEREncodable get(int i)

size

public int size()

encode

public void encode(ASN1OutputStream out)
            throws 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:
IOException


Copyright © 2004-2012. All Rights Reserved.