Package org.apache.harmony.security.asn1
Class BitString
- java.lang.Object
-
- org.apache.harmony.security.asn1.BitString
-
-
Field Summary
Fields Modifier and Type Field Description byte[]bytesSequence of bits padded with unused bits.intunusedBitsNumber of unused bits in the last byte.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetBit(int bit)voidsetBit(int bit, boolean value)boolean[]toBooleanArray()
-
-
-
Constructor Detail
-
BitString
public BitString(byte[] bytes, int unusedBits)- Parameters:
bytes- array of bytes that represents bit string, including unused bitsunusedBits- number of unused bits- Throws:
IllegalArgumentException- - if parameters are invalid
-
BitString
public BitString(boolean[] values)
-
-