| Modifier and Type | Field and Description |
|---|---|
| protected final byte[] | |
| protected final int | |
| private static final char[] |
| Access | Constructor and Description |
|---|---|
| public | 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. |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | asn1Equals(ASN1Primitive o)
Implements abstract org. |
| protected static byte[] | |
| pack-priv abstract void | |
| pack-priv static ASN1BitString | |
| 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 ASN1Primitive | |
| 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. |
| 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 | |
| public String | Returns: a String representation.Implements org. |
| public int | hashCode()
Implements abstract org. |
| public int | |
| 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 |
| data | back to summary |
|---|---|
| protected final byte[] data | |
| padBits | back to summary |
|---|---|
| protected final int padBits | |
| table | back to summary |
|---|---|
| private static final char[] table | |
| ASN1BitString | back to summary |
|---|---|
| public ASN1BitString(byte[] data, int padBits) Base constructor.
| |
| asn1Equals | back to summary |
|---|---|
| protected boolean asn1Equals(ASN1Primitive o) Implements abstract org. Doc from org. Equality (similarity) comparison for two ASN1Primitive objects. | |
| derForm | back to summary |
|---|---|
| protected static byte[] derForm(byte[] data, int padBits) | |
| encode | back to summary |
|---|---|
| pack-priv abstract void encode(ASN1OutputStream out) throws IOException Implements abstract org. | |
| fromInputStream | back to summary |
|---|---|
| pack-priv static ASN1BitString fromInputStream(int length, InputStream stream) throws IOException | |
| getBytes | back to summary |
|---|---|
protected static byte[] getBytes(int bitString)
| |
| getBytes | back to summary |
|---|---|
| public byte[] getBytes() | |
| getLoadedObject | back to summary |
|---|---|
| public ASN1Primitive getLoadedObject() | |
| 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.
| |
| getPadBits | back to summary |
|---|---|
protected static int getPadBits(int bitString)
| |
| getPadBits | back to summary |
|---|---|
| public int getPadBits() | |
| 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 this 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()
| |
| 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.
| |