public class DERBitString extends ASN1BitString
data, padBits
Modifier | Constructor and Description |
---|---|
|
DERBitString(ASN1Encodable obj) |
|
DERBitString(byte[] data) |
|
DERBitString(byte[] data,
int padBits) |
protected |
DERBitString(byte data,
int padBits) |
|
DERBitString(int value) |
Modifier and Type | Method and Description |
---|---|
static DERBitString |
getInstance(ASN1TaggedObject obj,
boolean explicit)
return a Bit String from a tagged object.
|
static DERBitString |
getInstance(Object obj)
return a Bit String from the passed in object
|
asn1Equals, derForm, getBytes, getBytes, getLoadedObject, getOctets, getPadBits, getPadBits, getString, hashCode, intValue, toString
equals, fromByteArray, toASN1Primitive
getEncoded, getEncoded, hasEncodedTagValue, toASN1Object
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 IOException
IOException
public static DERBitString getInstance(Object obj)
obj
- a DERBitString or an object that can be converted into one.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.IllegalArgumentException
- if the tagged object cannot
be converted.Copyright © 2020 BouncyCastle.org. All rights reserved.