ASN1Encodable
, ASN1String
, Encodable
NetscapeCertType
, PKIFailureInfo
, ReasonFlags
public class DERBitString extends ASN1BitString
data, padBits
Modifier | Constructor | Description |
---|---|---|
|
DERBitString(byte[] data) |
|
|
DERBitString(byte[] data,
int padBits) |
|
protected |
DERBitString(byte data,
int padBits) |
|
|
DERBitString(int value) |
|
|
DERBitString(ASN1Encodable obj) |
Modifier and Type | Method | Description |
---|---|---|
static DERBitString |
getInstance(java.lang.Object obj) |
return a Bit String from the passed in object
|
static DERBitString |
getInstance(ASN1TaggedObject obj,
boolean explicit) |
return a Bit String from a tagged object.
|
asn1Equals, derForm, getBytes, getBytes, getLoadedObject, getOctets, getPadBits, getPadBits, getString, hashCode, intValue, toString
getEncoded, getEncoded, hasEncodedTagValue, toASN1Object
equals, fromByteArray, toASN1Primitive
protected DERBitString(byte data, int padBits)
public DERBitString(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 DERBitString(byte[] data)
public DERBitString(int value)
public DERBitString(ASN1Encodable obj) throws java.io.IOException
java.io.IOException
public static DERBitString getInstance(java.lang.Object obj)
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)
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.