public class DERBitString extends ASN1BitString
Constructor and Description |
---|
DERBitString(ASN1Encodable obj) |
DERBitString(byte[] data) |
DERBitString(byte[] data,
int padBits) |
DERBitString(byte data,
int padBits) |
DERBitString(int value) |
Modifier and Type | Method and Description |
---|---|
static DERBitString |
convert(ASN1BitString bitString) |
static DERBitString |
getInstance(ASN1TaggedObject obj,
boolean explicit)
Deprecated.
|
static DERBitString |
getInstance(java.lang.Object obj)
Deprecated.
Use
ASN1BitString.getInstance(Object) and
convert(ASN1BitString) instead. |
getBitStream, getBytes, getBytes, getLoadedObject, getOctets, getOctetStream, getPadBits, getPadBits, getString, hashCode, intValue, parser, toString
encodeTo, encodeTo, equals, equals, equals, fromByteArray, toASN1Primitive
getEncoded, getEncoded, hasEncodedTagValue
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
toASN1Primitive
public DERBitString(byte[] data)
public DERBitString(byte data, int padBits)
public DERBitString(byte[] data, int padBits)
public DERBitString(int value)
public DERBitString(ASN1Encodable obj) throws java.io.IOException
java.io.IOException
public static DERBitString convert(ASN1BitString bitString)
public static DERBitString getInstance(java.lang.Object obj)
ASN1BitString.getInstance(Object)
and
convert(ASN1BitString)
instead.obj
- a DERBitString or an object that can be converted into one.java.lang.IllegalArgumentException
- if the object cannot be converted.public static DERBitString getInstance(ASN1TaggedObject obj, boolean explicit)
ASN1BitString.getInstance(ASN1TaggedObject, boolean)
and convert(ASN1BitString)
instead.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.