Class ContextSpecific

    • Constructor Summary

      Constructors 
      Constructor Description
      ContextSpecific​(java.lang.Class<? extends DecoderObject> type)
      Construye un tipo ASN.1 específico del contexto.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void checkTag​(byte tag)
      Comprueba que el tipo proporcionado sea compatible con el del objeto ASN.1.
      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 getObject()
      Obtiene el objeto ASN.1.
      • Methods inherited from class java.lang.Object

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

      • elementType

        private final transient java.lang.Class<? extends DecoderObject> elementType
    • Constructor Detail

      • ContextSpecific

        public ContextSpecific​(java.lang.Class<? extends DecoderObject> type)
        Construye un tipo ASN.1 específico del contexto.
        Parameters:
        type - Tipo de elemento contenido dentro de este objeto.
    • Method Detail

      • getObject

        protected DecoderObject getObject()
        Obtiene el objeto ASN.1.
        Returns:
        Objeto ASN.1.
      • getDefaultTag

        protected 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.
      • checkTag

        public void checkTag​(byte tag)
                      throws Asn1Exception
        Description copied from class: DecoderObject
        Comprueba que el tipo proporcionado sea compatible con el del objeto ASN.1.
        Overrides:
        checkTag in class DecoderObject
        Parameters:
        tag - Etiqueta de tipo a comprobar.
        Throws:
        Asn1Exception - Si las etiquetas de tipo no son compatibles.