org.mozilla.jss.asn1
Class SET.OF_Template
java.lang.Object
org.mozilla.jss.asn1.SET.OF_Template
- SET
- ASN1Template
public static class SET.OF_Template
extends java.lang.Object
A Template for decoding SET OF values.
Use this if you have a SIZE qualifier on your SET OF.
The SET will consume as many instances of type as it can, rather than
stopping after the first one. This is equivalent to SIZE (0..MAX).
If you need something more restrictive, you can look at what gets parsed
and decide whether it's OK or not yourself.
OF_Template
public OF_Template(ASN1Template type)
Creates an OF_Template with the given type. For example:
MySet ::= SET OF INTEGER;
A
MySet
template would be constructed with:
SET.OF_Template mySetTemplate = new SET.OF_Template( new
INTEGER.Template() );