Package es.gob.jmulticard.asn1.der
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[]
rawValue
private static byte
RELATIVE_OID
private static byte
TAG_OBJECTID
-
Constructor Summary
Constructors Constructor Description ObjectIdentifier()
-
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.java.lang.String
toString()
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, getRawDerValue, setDerValue
-
-
-
-
Field Detail
-
TAG_OBJECTID
private static final byte TAG_OBJECTID
- See Also:
- Constant Field Values
-
RELATIVE_OID
private static final byte RELATIVE_OID
- See Also:
- Constant Field Values
-
rawValue
private transient byte[] rawValue
-
-
Method Detail
-
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 classDecoderObject
- 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 classDecoderObject
- 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 classDecoderObject
- Returns:
- Etiqueta de tipo ASN.1 del objeto.
-
toString
public java.lang.String toString()
Devuelve una representación textual del código OID o su valor hexadecimal si no se reconoce.- Overrides:
toString
in classjava.lang.Object
-
-