Class SequenceOf

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected SequenceOf​(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 void decodeValue()
      Decodifica el valor DER establecido comprobando que corresponde al esperado y formando las estructuras internas.
      protected byte getDefaultTag()
      Obtiene la etiqueta de tipo ASN.1 del objeto.
      protected DecoderObject getElementAt​(int index)
      Devuelve el elemento situado en la posición indicada.
      protected int getElementCount()
      Obtiene el número de elementos que contiene la secuencia.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • TAG_SEQUENCE

        private static final byte TAG_SEQUENCE
        Tipo ASN.1 SequenceOf.
        See Also:
        Constant Field Values
      • elementsType

        private final java.lang.Class<? extends DecoderObject> elementsType
      • sequenceObjects

        private java.util.LinkedList<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 final void decodeValue()
                                  throws Asn1Exception,
                                         TlvException
        Description copied from class: DecoderObject
        Decodifica el valor DER establecido comprobando que corresponde al esperado y formando las estructuras internas.
        Specified by:
        decodeValue in class DecoderObject
        Throws:
        Asn1Exception - Si hay errores correspondientes a las estructuras ASN.1 DER.
        TlvException - Si hay errores relativos a los TLV DER.
      • getDefaultTag

        protected final byte getDefaultTag()
        Description copied from class: DecoderObject
        Obtiene la etiqueta de tipo ASN.1 del objeto.
        Specified by:
        getDefaultTag in class DecoderObject
        Returns:
        Etiqueta de tipo ASN.1 del objeto.
      • getElementAt

        protected final 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 DecoderObject que contiene el TLV deseado.
        Throws:
        java.lang.IndexOutOfBoundsException - Si el indice indicado no pertenece al rango de la secuencia.
      • getElementCount

        protected final int getElementCount()
        Obtiene el número de elementos que contiene la secuencia.
        Returns:
        Número de elementos que contiene la secuencia.