Class BitSetConverter


public class BitSetConverter extends BitStringConverter
The BitStringConverter can convert BitSet to ASN.1 recognized values and vice versa. Only work in JDK 7.0+
  • Field Details

  • Constructor Details

    • BitSetConverter

      public BitSetConverter()
  • Method Details

    • createObject

      public Object createObject(byte[] bytes, byte unusedBits)
      Specified by:
      createObject in class BitStringConverter
    • getBytes

      public byte[] getBytes(Object object)
      Return the bytes of the BIT STRING value
      Parameters:
      object - The BIT STRING value
      Returns:
      The bytes of the BIT STRING value
    • getUnusedBits

      public byte getUnusedBits(Object object)
      Return the unused bits of the BIT STRING value
      Parameters:
      object - The BIT STRING value
      Returns:
      The unused bits of the BIT STRING value
    • reverseBitOrder

      public byte reverseBitOrder(byte b)