Top Description Fields Constructors Methods
org.bouncycastle.asn1

public Class DLBitString

extends ASN1BitString
Class Inheritance
Imports
java.io.IOException

A Definite length BIT STRING

Field Summary

Inherited from org.bouncycastle.asn1.ASN1BitString:
contentsTYPE

Constructor Summary

AccessConstructor and Description
public
DLBitString(byte[] data)

public
DLBitString(byte data, int padBits)

public
DLBitString(byte[] data, int padBits)

public
DLBitString(int value)

public
pack-priv
DLBitString(byte[] contents, boolean check)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
encode(ASN1OutputStream out, boolean withTag)

Implements abstract org.bouncycastle.asn1.ASN1Primitive.encode.

pack-priv static void
encode(ASN1OutputStream out, boolean withTag, byte[] buf, int off, int len)

pack-priv static void
encode(ASN1OutputStream out, boolean withTag, byte pad, byte[] buf, int off, int len)

pack-priv boolean
encodeConstructed()

Implements abstract org.bouncycastle.asn1.ASN1Primitive.encodeConstructed.

Return true if this objected is a CONSTRUCTED one, false otherwise.
pack-priv int
pack-priv static int
encodedLength(boolean withTag, int contentsLength)

pack-priv ASN1Primitive
toDLObject()

Overrides org.bouncycastle.asn1.ASN1BitString.toDLObject.

Return the current object as one which encodes using Definite Length encoding.
Inherited from org.bouncycastle.asn1.ASN1BitString:
asn1EqualscreatePrimitivegetBitStreamgetBytesgetBytesgetInstancegetInstancegetLoadedObjectgetOctetsgetOctetStreamgetPadBitsgetPadBitsgetStringhashCodeintValueparsertoDERObjecttoString

Constructor Detail

DLBitStringback to summary
public DLBitString(byte[] data)
DLBitStringback to summary
public DLBitString(byte data, int padBits)
DLBitStringback to summary
public DLBitString(byte[] data, int padBits)
DLBitStringback to summary
public DLBitString(int value)
DLBitStringback to summary
public DLBitString(ASN1Encodable obj) throws IOException
DLBitStringback to summary
pack-priv DLBitString(byte[] contents, boolean check)

Method Detail

encodeback to summary
pack-priv void encode(ASN1OutputStream out, boolean withTag) throws IOException

Implements abstract org.bouncycastle.asn1.ASN1Primitive.encode.

encodeback to summary
pack-priv static void encode(ASN1OutputStream out, boolean withTag, byte[] buf, int off, int len) throws IOException
encodeback to summary
pack-priv static void encode(ASN1OutputStream out, boolean withTag, byte pad, byte[] buf, int off, int len) throws IOException
encodeConstructedback to summary
pack-priv boolean encodeConstructed()

Implements abstract org.bouncycastle.asn1.ASN1Primitive.encodeConstructed.

Doc from org.bouncycastle.asn1.ASN1Primitive.encodeConstructed.

Return true if this objected is a CONSTRUCTED one, false otherwise.

Returns:boolean

true if CONSTRUCTED bit set on object's tag, false otherwise.

encodedLengthback to summary
pack-priv int encodedLength(boolean withTag)

Implements abstract org.bouncycastle.asn1.ASN1Primitive.encodedLength.

encodedLengthback to summary
pack-priv static int encodedLength(boolean withTag, int contentsLength)
toDLObjectback to summary
pack-priv ASN1Primitive toDLObject()

Overrides org.bouncycastle.asn1.ASN1BitString.toDLObject.

Doc from org.bouncycastle.asn1.ASN1Primitive.toDLObject.

Return the current object as one which encodes using Definite Length encoding.

Returns:ASN1Primitive

a DL version of this.