public class DLBitString extends ASN1BitString
data, padBits
Modifier | Constructor and Description |
---|---|
|
DLBitString(ASN1Encodable obj) |
|
DLBitString(byte[] data) |
|
DLBitString(byte[] data,
int padBits) |
protected |
DLBitString(byte data,
int padBits) |
|
DLBitString(int value) |
Modifier and Type | Method and Description |
---|---|
static ASN1BitString |
getInstance(ASN1TaggedObject obj,
boolean explicit)
return a Bit String from a tagged object.
|
static ASN1BitString |
getInstance(java.lang.Object obj)
return a Bit String that can be definite-length encoded from the passed in object.
|
getBytes, getBytes, getLoadedObject, getOctets, getPadBits, getPadBits, getString, hashCode, intValue, toString
encodeTo, encodeTo, equals, equals, equals, fromByteArray, toASN1Primitive
getEncoded, getEncoded, hasEncodedTagValue
protected DLBitString(byte data, int padBits)
public DLBitString(byte[] data, int padBits)
data
- the octets making up the bit string.padBits
- the number of extra bits at the end of the string.public DLBitString(byte[] data)
public DLBitString(int value)
public DLBitString(ASN1Encodable obj) throws java.io.IOException
java.io.IOException
public static ASN1BitString getInstance(java.lang.Object obj)
obj
- a DL or DER BitString or an object that can be converted into one.java.lang.IllegalArgumentException
- if the object cannot be converted.public static ASN1BitString getInstance(ASN1TaggedObject obj, boolean explicit)
obj
- the tagged object holding the object we wantexplicit
- true if the object is meant to be explicitly
tagged false otherwise.java.lang.IllegalArgumentException
- if the tagged object cannot
be converted.