| Modifier and Type | Field and Description |
|---|---|
| pack-priv final byte[] | |
| private static final char[] | |
| pack-priv static final ASN1UniversalType |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | ASN1BitString(byte[]
the octets making up the bit string. data, int the number of extra bits at the end of the string. padBits)Base constructor. |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | asn1Equals(ASN1Primitive other)
Implements abstract org. |
| pack-priv static ASN1BitString | |
| public InputStream | getBitStream()
Implements org. |
| protected static byte[] | Returns: the correct number of bytes for a bit string defined in a 32 bit constantan int containing the BIT STRING bitString)
|
| public byte[] | |
| public static ASN1BitString | |
| public static ASN1BitString | |
| public ASN1Primitive | getLoadedObject()
Implements org. |
| public byte[] | Returns: a copy of the octet aligned data.Return the octets contained in this BIT STRING, checking that this BIT STRING really does represent an octet aligned string. |
| public InputStream | getOctetStream()
Implements org. |
| protected static int | Returns: the correct number of pad bits for a bit string defined in a 32 bit constantan int containing the BIT STRING bitString)
|
| public int | getPadBits()
Implements org. getBitStream().
|
| public String | Returns: a String representation.Implements org. |
| public int | hashCode()
Implements abstract org. |
| public int | |
| public ASN1BitStringParser | |
| pack-priv ASN1Primitive | toDERObject()
Return the current object as one which encodes using Distinguished Encoding Rules.
|
| pack-priv ASN1Primitive | toDLObject()
Return the current object as one which encodes using Definite Length encoding.
|
| public String |
| contents | back to summary |
|---|---|
| pack-priv final byte[] contents | |
| table | back to summary |
|---|---|
| private static final char[] table | |
| TYPE | back to summary |
|---|---|
| pack-priv static final ASN1UniversalType TYPE | |
| ASN1BitString | back to summary |
|---|---|
| pack-priv ASN1BitString(byte data, int padBits) | |
| ASN1BitString | back to summary |
|---|---|
| pack-priv ASN1BitString(byte[] data, int padBits) Base constructor.
| |
| ASN1BitString | back to summary |
|---|---|
| pack-priv ASN1BitString(byte[] contents, boolean check) | |
| asn1Equals | back to summary |
|---|---|
| pack-priv boolean asn1Equals(ASN1Primitive other) Implements abstract org. Doc from org. Equality (similarity) comparison for two ASN1Primitive objects. | |
| createPrimitive | back to summary |
|---|---|
| pack-priv static ASN1BitString createPrimitive(byte[] contents) | |
| getBitStream | back to summary |
|---|---|
| public InputStream getBitStream() throws IOException Implements org. Doc from org. Return an InputStream representing the contents of the BIT STRING. The final
byte, if any, may include pad bits. See
| |
| getBytes | back to summary |
|---|---|
protected static byte[] getBytes(int bitString)
| |
| getBytes | back to summary |
|---|---|
| public byte[] getBytes() | |
| getInstance | back to summary |
|---|---|
| public static ASN1BitString getInstance(Object obj) | |
| getInstance | back to summary |
|---|---|
| public static ASN1BitString getInstance(ASN1TaggedObject taggedObject, boolean explicit) | |
| getLoadedObject | back to summary |
|---|---|
| public ASN1Primitive getLoadedObject() Implements org. Doc from org. Get the in-memory representation of the ASN.1 object.
| |
| getOctets | back to summary |
|---|---|
| public byte[] getOctets() Return the octets contained in this BIT STRING, checking that this BIT STRING really does represent an octet aligned string. Only use this method when the standard you are following dictates that the BIT STRING will be octet aligned.
| |
| getOctetStream | back to summary |
|---|---|
| public InputStream getOctetStream() throws IOException Implements org. Doc from org. Return an InputStream representing the contents of the BIT STRING, where the content is expected to be octet-aligned (this will be automatically checked during parsing).
| |
| getPadBits | back to summary |
|---|---|
protected static int getPadBits(int bitString)
| |
| getPadBits | back to summary |
|---|---|
| public int getPadBits() Implements org. Doc from org. Return the number of pad bits, if any, in the final byte, if any, read from
Note Must be called AFTER the stream
has been fully processed. (Does not need to be called if
| |
| getString | back to summary |
|---|---|
| public String getString() Implements org. Return a String representation of this BIT STRING
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract org. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| intValue | back to summary |
|---|---|
public int intValue()
| |
| parser | back to summary |
|---|---|
| public ASN1BitStringParser parser() | |
| toDERObject | back to summary |
|---|---|
| pack-priv ASN1Primitive toDERObject() Overrides org. Doc from org. Return the current object as one which encodes using Distinguished Encoding Rules.
| |
| toDLObject | back to summary |
|---|---|
| pack-priv ASN1Primitive toDLObject() Overrides org. Doc from org. Return the current object as one which encodes using Definite Length encoding.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |