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 Details

    • TAG_BITSTRING

      private static final byte TAG_BITSTRING
      Tipo ASN.1 "BIT STRING".
      See Also:
    • tlv

      private transient Tlv tlv
  • Constructor Details

    • BitString

      public BitString()
  • Method Details

    • 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 class DecoderObject
      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 class DecoderObject
      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.