Class ObjectIdentifier

java.lang.Object
es.gob.jmulticard.asn1.DecoderObject
es.gob.jmulticard.asn1.der.ObjectIdentifier

public final class ObjectIdentifier extends DecoderObject
Tipo ASN.1 OID.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private byte[]
     
    private static final byte
     
    private static final byte
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    checkTag(byte tag)
    Comprueba que el tipo proporcionado sea compatible con el del objeto ASN.1.
    protected void
    Decodifica el valor DER establecido comprobando que corresponde al esperado y formando las estructuras internas.
    protected byte
    Obtiene la etiqueta de tipo ASN.1 del objeto.
    Devuelve una representación textual del código OID o su valor hexadecimal si no se reconoce.

    Methods inherited from class es.gob.jmulticard.asn1.DecoderObject

    getBytes, setDerValue

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • ObjectIdentifier

      public ObjectIdentifier()
  • Method Details

    • 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.
    • decodeValue

      protected void decodeValue() throws 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:
      TlvException - Si hay errores relativos a los TLV DER.
    • 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.
    • toString

      public String toString()
      Devuelve una representación textual del código OID o su valor hexadecimal si no se reconoce.
      Overrides:
      toString in class Object