Top Description Fields Constructors Methods
org.bouncycastle.asn1

public Class DEROctetString

extends ASN1OctetString
Class Inheritance
Imports
java.io.IOException

Carrier class for a DER encoding OCTET STRING

Field Summary

Inherited from org.bouncycastle.asn1.ASN1OctetString:
string

Constructor Summary

AccessConstructor and Description
public
DEROctetString(byte[]
the octets making up the octet string.
string
)

Base constructor.

public
DEROctetString(ASN1Encodable
the object to be encoded.
obj
)

Constructor from the encoding of an ASN.1 object.

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv static void
encode(DEROutputStream derOut, byte[] bytes)

pack-priv int
encodedLength()

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

Return the length of the encoding this object will produce.
pack-priv boolean
isConstructed()

Implements abstract org.bouncycastle.asn1.ASN1Primitive.isConstructed.

Return true if this objected is a CONSTRUCTED one, false otherwise.
Inherited from org.bouncycastle.asn1.ASN1OctetString:
asn1EqualsgetInstancegetInstancegetLoadedObjectgetOctetsgetOctetStreamhashCodeparsertoDERObjecttoDLObjecttoString

Constructor Detail

DEROctetStringback to summary
public DEROctetString(byte[] string)

Base constructor.

Parameters
string:byte[]

the octets making up the octet string.

DEROctetStringback to summary
public DEROctetString(ASN1Encodable obj) throws IOException

Constructor from the encoding of an ASN.1 object.

Parameters
obj:ASN1Encodable

the object to be encoded.

Method Detail

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

Implements abstract org.bouncycastle.asn1.ASN1OctetString.encode.

encodeback to summary
pack-priv static void encode(DEROutputStream derOut, byte[] bytes) throws IOException
encodedLengthback to summary
pack-priv int encodedLength()

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

Doc from org.bouncycastle.asn1.ASN1Primitive.encodedLength.

Return the length of the encoding this object will produce.

Returns:int

the length of the object's encoding.

isConstructedback to summary
pack-priv boolean isConstructed()

Implements abstract org.bouncycastle.asn1.ASN1Primitive.isConstructed.

Doc from org.bouncycastle.asn1.ASN1Primitive.isConstructed.

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

Returns:boolean

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