Top Description Fields Constructors Methods
org.bouncycastle.asn1

public Class DERBitString

extends ASN1BitString
Class Inheritance
Known Direct Subclasses
org.bouncycastle.asn1.misc.NetscapeCertType, org.bouncycastle.asn1.x509.ReasonFlags
Imports
java.io.IOException

A BIT STRING with DER encoding - the first byte contains the count of padding bits included in the byte array's last byte.

Field Summary

Inherited from org.bouncycastle.asn1.ASN1BitString:
contentsTYPE

Constructor Summary

AccessConstructor and Description
public
DERBitString(byte[] data)

public
DERBitString(byte data, int padBits)

public
DERBitString(byte[] data, int padBits)

public
DERBitString(int value)

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

Method Summary

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

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

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 DERBitString
pack-priv ASN1Primitive
toDERObject()

Overrides org.bouncycastle.asn1.ASN1BitString.toDERObject.

Return the current object as one which encodes using Distinguished Encoding Rules.
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:
asn1EqualscreatePrimitivegetBitStreamgetBytesgetBytesgetInstancegetInstancegetLoadedObjectgetOctetsgetOctetStreamgetPadBitsgetPadBitsgetStringhashCodeintValueparsertoString

Constructor Detail

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

Method Detail

convertback to summary
public static DERBitString convert(ASN1BitString bitString)
encodeback to summary
pack-priv void encode(ASN1OutputStream out, boolean withTag) throws IOException

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

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.

fromOctetStringback to summary
pack-priv static DERBitString fromOctetString(ASN1OctetString octetString)
toDERObjectback to summary
pack-priv ASN1Primitive toDERObject()

Overrides org.bouncycastle.asn1.ASN1BitString.toDERObject.

Doc from org.bouncycastle.asn1.ASN1Primitive.toDERObject.

Return the current object as one which encodes using Distinguished Encoding Rules.

Returns:ASN1Primitive

a DER version of this.

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.