public class Asn1_ABSTRACT_SYNTAX_property extends Asn1BitString
Modifier and Type | Field and Description |
---|---|
static int |
handles_invalid_encodings |
ASN1VALUE, BITS, HEX, HEXBIN, mStringFormat, numbits, TAG, trimZeroBits, value
BIT_STRING, BMPString, BOOLEAN, DATE, DATE_TIME, DURATION, ENUMERATED, EOC, EXTERNAL, GeneralString, GeneralTime, GraphicString, IA5String, INTEGER, mAsn1TypeName, NULL, NumericString, OBJECT_IDENTIFIER, ObjectDescriptor, OCTET_STRING, OID_IRI, OpenType, PrintableString, REAL, RELATIVE_OID_IRI, RelativeOID, SEQUENCE, SET, T61String, TeletexString, TIME, TIME_OF_DAY, UniversalString, UTCTime, UTF8String, VideotexString, VisibleString
Constructor and Description |
---|
Asn1_ABSTRACT_SYNTAX_property()
This constructor creates an empty bit string that can be used in
a decode method call to receive a bit string value.
|
Asn1_ABSTRACT_SYNTAX_property(java.util.BitSet bitSet)
This constructor initializes the bit string value from the given
BitSet object.
|
Asn1_ABSTRACT_SYNTAX_property(boolean[] bitValues)
This constructor initializes the bit string value from the given
boolean array.
|
Asn1_ABSTRACT_SYNTAX_property(byte[] data)
This constructor initializes the bit string value with the
given bytes, using all 8 bits of every byte.
|
Asn1_ABSTRACT_SYNTAX_property(int numbits_,
byte[] data)
This constructor initializes the bit string value with the
given number of bits and data.
|
Asn1_ABSTRACT_SYNTAX_property(java.lang.String value_)
This constructor parses the given ASN.1 value text (either a
binary or hex data string) and assigns the values to the internal
bit string.
|
Modifier and Type | Method and Description |
---|---|
void |
decode(Asn1BerDecodeBuffer buffer,
boolean explicit,
int implicitLength)
This method decodes an ASN.1 bit string value using the BER or
DER encoding rules.
|
void |
decode(Asn1PerDecodeBuffer buffer)
This method decodes an ASN.1 bit string value using the packed
encoding rules (PER).
|
java.lang.String |
getAsn1TypeName()
This method gets the ASN.1 type name.
|
clear, decode, decode, decode, decode, decode, decode, decodeXER, decodeXML, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, equals, equals, getLength, hashCode, isNamedBitStr, isSet, set, set, toBoolArray, toHexString, toInputStream, toString
public static final int handles_invalid_encodings
public Asn1_ABSTRACT_SYNTAX_property()
public Asn1_ABSTRACT_SYNTAX_property(byte[] data)
data
- Binary bit string contentspublic Asn1_ABSTRACT_SYNTAX_property(int numbits_, byte[] data)
numbits_
- Number of bitsdata
- Binary bit string contentspublic Asn1_ABSTRACT_SYNTAX_property(boolean[] bitValues)
bitValues
- The boolean arraypublic Asn1_ABSTRACT_SYNTAX_property(java.lang.String value_) throws Asn1ValueParseException
Asn1ValueParseException
public Asn1_ABSTRACT_SYNTAX_property(java.util.BitSet bitSet)
bitSet
- Java BitSet objectpublic java.lang.String getAsn1TypeName()
Asn1BitString
getAsn1TypeName
in class Asn1BitString
public void decode(Asn1BerDecodeBuffer buffer, boolean explicit, int implicitLength) throws Asn1Exception, java.io.IOException
Asn1BitString
decode
in interface Asn1TypeIF
decode
in class Asn1BitString
buffer
- Decode message buffer objectexplicit
- Flag indicating element is explicitly taggedimplicitLength
- Length of contents if implicitAsn1Exception
java.io.IOException
public void decode(Asn1PerDecodeBuffer buffer) throws Asn1Exception, java.io.IOException
Asn1BitString
decode
in interface Asn1TypeIF
decode
in class Asn1BitString
buffer
- Decode message buffer objectAsn1Exception
java.io.IOException