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 Details

    • TAG_OBJECTID

      private static final byte TAG_OBJECTID
      See Also:
    • RELATIVE_OID

      private static final byte RELATIVE_OID
      See Also:
    • rawValue

      private transient byte[] rawValue
  • 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