org.mozilla.jss.asn1
Class SEQUENCE.OF_Template
java.lang.Object
org.mozilla.jss.asn1.SEQUENCE.OF_Template
- SEQUENCE
- ASN1Template
public static class SEQUENCE.OF_Template
extends java.lang.Object
A Template for decoding SEQUENCE OF values. The main difference between
a SEQUENCE.Template and a SEQUENCE.OF_Template is that a regular template
specifies the exact ordering, number, and type of elements of the sequence,
while
an OF_Template has an indefinite number of elements, all the same type.
For example, given:
MyType ::= SEQUENCE OF Extension
a MyType could be decoded with:
SEQUENCE.OF_Template myTypeTemplate = new SEQUENCE.OF_Template( new
Extension.Template) );
SEQUENCE seq = (SEQUENCE) myTypeTemplate.decode(someInputStream);
The number of
Extension
s actually decoded could be found
with
seq.size()
.