org.apache.directory.shared.asn1.der
Class DERSequence
java.lang.Object
org.apache.directory.shared.asn1.der.DERSequence
- All Implemented Interfaces:
- DEREncodable
- Direct Known Subclasses:
- BERSequence
public class DERSequence
- extends Object
- implements DEREncodable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DERSequence
public DERSequence()
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.