Package es.gob.jmulticard.asn1.der
Class BitString
- java.lang.Object
-
- es.gob.jmulticard.asn1.DecoderObject
-
- es.gob.jmulticard.asn1.der.BitString
-
- Direct Known Subclasses:
AccessFlags
,CommonObjectFlags
,KeyUsageFlags
,SubjectPublicKey
public abstract class BitString extends DecoderObject
Tipo ASN.1 BitString.
-
-
Field Summary
Fields Modifier and Type Field Description private static byte
TAG_BITSTRING
Tipo ASN.1 "BIT STRING".private Tlv
tlv
-
Constructor Summary
Constructors Constructor Description BitString()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.byte[]
getValue()
Obtiene el valor binario del campo de datos del BitString.-
Methods inherited from class es.gob.jmulticard.asn1.DecoderObject
checkTag, getBytes, getRawDerValue, setDerValue
-
-
-
-
Field Detail
-
TAG_BITSTRING
private static final byte TAG_BITSTRING
Tipo ASN.1 "BIT STRING".- See Also:
- Constant Field Values
-
tlv
private transient Tlv tlv
-
-
Method Detail
-
decodeValue
protected void decodeValue() throws Asn1Exception, 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:
Asn1Exception
- Si hay errores correspondientes a las estructuras ASN.1 DER.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.
-
getValue
public byte[] getValue()
Obtiene el valor binario del campo de datos del BitString.- Returns:
- Valor binario del campo de datos del BitString.
-
-