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[]rawValueprivate static byteRELATIVE_OIDprivate static byteTAG_OBJECTID
-
Constructor Summary
Constructors Constructor Description ObjectIdentifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckTag(byte tag)Comprueba que el tipo proporcionado sea compatible con el del objeto ASN.1.protected voiddecodeValue()Decodifica el valor DER establecido comprobando que corresponde al esperado y formando las estructuras internas.protected bytegetDefaultTag()Obtiene la etiqueta de tipo ASN.1 del objeto.java.lang.StringtoString()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 Asn1ExceptionDescription copied from class:DecoderObjectComprueba que el tipo proporcionado sea compatible con el del objeto ASN.1.- Overrides:
checkTagin classDecoderObject- Parameters:
tag- Etiqueta de tipo a comprobar.- Throws:
Asn1Exception- Si las etiquetas de tipo no son compatibles.
-
decodeValue
protected void decodeValue() throws TlvExceptionDescription copied from class:DecoderObjectDecodifica el valor DER establecido comprobando que corresponde al esperado y formando las estructuras internas.- Specified by:
decodeValuein classDecoderObject- Throws:
TlvException- Si hay errores relativos a los TLV DER.
-
getDefaultTag
protected byte getDefaultTag()
Description copied from class:DecoderObjectObtiene la etiqueta de tipo ASN.1 del objeto.- Specified by:
getDefaultTagin 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:
toStringin classjava.lang.Object
-
-