Package es.gob.jmulticard.asn1.der
Class SequenceOf
- java.lang.Object
-
- es.gob.jmulticard.asn1.DecoderObject
-
- es.gob.jmulticard.asn1.der.SequenceOf
-
- Direct Known Subclasses:
DataGroupHashValues,RdnSequence
public abstract class SequenceOf extends DecoderObject
Tipo ASN.1 SequenceOf.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class<? extends DecoderObject>elementsTypeprivate java.util.Vector<DecoderObject>sequenceObjectsprivate static byteTAG_SEQUENCETipo ASN.1 SequenceOf.
-
Constructor Summary
Constructors Modifier Constructor Description protectedSequenceOf(java.lang.Class<? extends DecoderObject> type)Construye un tipo ASN.1 SequenceOf.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddecodeValue()Decodifica el valor DER establecido comprobando que corresponde al esperado y formando las estructuras internas.protected bytegetDefaultTag()Obtiene la etiqueta de tipo ASN.1 del objeto.protected DecoderObjectgetElementAt(int index)Devuelve el elemento situado en la posición indicada.protected intgetElementCount()Obtiene el número de elementos que contiene la secuencia.-
Methods inherited from class es.gob.jmulticard.asn1.DecoderObject
checkTag, getBytes, getRawDerValue, setDerValue
-
-
-
-
Field Detail
-
TAG_SEQUENCE
private static final byte TAG_SEQUENCE
Tipo ASN.1 SequenceOf.- See Also:
- Constant Field Values
-
elementsType
private final transient java.lang.Class<? extends DecoderObject> elementsType
-
sequenceObjects
private transient java.util.Vector<DecoderObject> sequenceObjects
-
-
Constructor Detail
-
SequenceOf
protected SequenceOf(java.lang.Class<? extends DecoderObject> type)
Construye un tipo ASN.1 SequenceOf. Un SequenceOf contiene una secuencia de tipos ASN.1 (que deben ser iguales).- Parameters:
type- Tipos (etiquetas) de objetos ASN.1 (1 a n elementos) que va a contener la secuencia. El orden es irrelevante.
-
-
Method Detail
-
decodeValue
protected void decodeValue() throws Asn1Exception, TlvExceptionDescription copied from class:DecoderObjectDecodifica el valor DER establecido comprobando que corresponde al esperado y formando las estructuras internas.- Specified by:
decodeValuein classDecoderObject- Throws:
Asn1Exception- Si hay errores correspondientes a las estructuras ASN.1 DER.TlvException- Si hay errores relativos a los TLV DER.
-
getDefaultTag
protected byte getDefaultTag()
Description copied from class:DecoderObjectObtiene la etiqueta de tipo ASN.1 del objeto.- Specified by:
getDefaultTagin classDecoderObject- Returns:
- Etiqueta de tipo ASN.1 del objeto.
-
getElementAt
protected DecoderObject getElementAt(int index)
Devuelve el elemento situado en la posición indicada.- Parameters:
index- Posición del elemento a recuperar.- Returns:
- Un objeto de tipo
DecoderObjectque contiene el TLV deseado. - Throws:
java.lang.IndexOutOfBoundsException- Si el indice indicado no pertenece al rango de la secuencia.
-
getElementCount
protected int getElementCount()
Obtiene el número de elementos que contiene la secuencia.- Returns:
- Número de elementos que contiene la secuencia.
-
-