org.mozilla.jss.asn1

Class SEQUENCE

Implemented Interfaces:
ASN1Value

public class SEQUENCE
extends SET
implements ASN1Value

An ASN.1 SEQUENCE. This class is an ordered collection of ASN.1 values. It has an interface similar to a Java Vector. Null entries may be added; they will be skipped when encoded.

Nested Class Summary

static class
SEQUENCE.OF_Template
A Template for decoding SEQUENCE OF values.
static class
SEQUENCE.Template
A class for constructing a SEQUENCE from its BER encoding.

Nested classes/interfaces inherited from class org.mozilla.jss.asn1.SET

SET.OF_Template, SET.Template

Field Summary

static Tag
TAG

Fields inherited from class org.mozilla.jss.asn1.SET

FORM, TAG, elements

Method Summary

void
encode(Tag implicitTag, OutputStream ostream)
Writes the DER encoding to the given output stream, using the given implicit tag.
Tag
getTag()
static SEQUENCE.Template
getTemplate()
static void
main(args[] )

Methods inherited from class org.mozilla.jss.asn1.SET

BERencode, addElement, addElement, elementAt, elementWithTag, encode, encode, getTag, insertElementAt, insertElementAt, main, removeAllElements, removeElementAt, size, tagAt

Field Details

TAG

public static final Tag TAG

Method Details

encode

public void encode(Tag implicitTag,
                   OutputStream ostream)
            throws IOException
Writes the DER encoding to the given output stream, using the given implicit tag.
Specified by:
encode in interface ASN1Value
Overrides:
encode in interface SET

getTag

public Tag getTag()
Specified by:
getTag in interface ASN1Value
Overrides:
getTag in interface SET

getTemplate

public static SEQUENCE.Template getTemplate()

main

public static void main(args[] )
Overrides:
main in interface SET