public abstract class ASN1TypeCollection extends ASN1Constructed
Modifier and Type | Field and Description |
---|---|
Object[] |
DEFAULT |
boolean[] |
OPTIONAL |
ASN1Type[] |
type |
CLASS_APPLICATION, CLASS_CONTEXTSPECIFIC, CLASS_PRIVATE, CLASS_UNIVERSAL, PC_CONSTRUCTED, PC_PRIMITIVE, TAG_ANY, TAG_BITSTRING, TAG_BMPSTRING, TAG_BOOLEAN, TAG_C_BITSTRING, TAG_C_GENERALIZEDTIME, TAG_C_OCTETSTRING, TAG_C_SEQUENCE, TAG_C_SEQUENCEOF, TAG_C_SET, TAG_C_SETOF, TAG_C_UTCTIME, TAG_C_UTF8STRING, TAG_CHOICE, TAG_EMBEDDEDPDV, TAG_ENUM, TAG_EXTERNAL, TAG_GENERALIZEDTIME, TAG_GENERALSTRING, TAG_GRAPHICSTRING, TAG_IA5STRING, TAG_INSTANCEOF, TAG_INTEGER, TAG_ISO646STRING, TAG_NULL, TAG_NUMERICSTRING, TAG_OBJDESCRIPTOR, TAG_OCTETSTRING, TAG_OID, TAG_PRINTABLESTRING, TAG_REAL, TAG_RELATIVEOID, TAG_SEQUENCE, TAG_SEQUENCEOF, TAG_SET, TAG_SETOF, TAG_T61STRING, TAG_TELETEXSTRING, TAG_UNIVERSALSTRING, TAG_UTCTIME, TAG_UTF8STRING, TAG_VIDEOTEXSTRING, TAG_VISIBLESTRING
Modifier | Constructor and Description |
---|---|
protected |
ASN1TypeCollection(int tagNumber,
ASN1Type[] type)
Constructs ASN.1 collection type.
|
Modifier and Type | Method and Description |
---|---|
protected void |
getValues(Object object,
Object[] values)
Provides an object's values to be encoded
Derived classes should override this method to provide
encoding for a selected class of objects.
|
protected void |
setDefault(Object object,
int index)
Sets a default value for a collection component.
|
protected void |
setOptional(int index)
Sets a collection component as optional
|
checkTag, encodeASN
decode, decode, decode, decode, encode, encodeContent, getDecodedObject, getEncodedLength, setEncodingContent, toString, verify, verify
public final ASN1Type[] type
public final boolean[] OPTIONAL
public final Object[] DEFAULT
protected ASN1TypeCollection(int tagNumber, ASN1Type[] type)
tagNumber
- ASN.1 tag numbertype
- a collection of one or more ASN.1 types.IllegalArgumentException
- if tagNumber is invalidprotected final void setOptional(int index)
index
- an index of a componentprotected final void setDefault(Object object, int index)
object
- a component's default valueindex
- an index of a componentprotected void getValues(Object object, Object[] values)
object
- an object to be encodedvalues
- an array to store an object's values to be encoded