Top Description Fields Constructors Methods
org.bouncycastle.asn1

public Class DLApplicationSpecific

extends ASN1ApplicationSpecific
Class Inheritance
Imports
java.io.ByteArrayOutputStream, .IOException

A DER encoding version of an application specific object.

Field Summary

Inherited from org.bouncycastle.asn1.ASN1ApplicationSpecific:
isConstructedoctetstag

Constructor Summary

AccessConstructor and Description
pack-priv
DLApplicationSpecific(boolean isConstructed, int tag, byte[] octets)

public
DLApplicationSpecific(int
the tag number for this object.
tag
,
byte[]
the encoding of the object's body.
octets
)

Create an application specific object from the passed in data.

public
DLApplicationSpecific(int
the tag number for this object.
tag
,
ASN1Encodable
the object to be contained.
object
)

Create an application specific object with a tagging of explicit/constructed.

public
DLApplicationSpecific(boolean
true if the object is constructed.
constructed
,
int
the tag number for this object.
tag
,
ASN1Encodable
the object to be contained.
object
)

Create an application specific object with the tagging style given by the value of constructed.

public
DLApplicationSpecific(int
the tag number for this object.
tagNo
,
ASN1EncodableVector
the objects making up the application specific object.
vec
)

Create an application specific object which is marked as constructed

Method Summary

Modifier and TypeMethod and Description
pack-priv void
private static byte[]
private static byte[]
getEncoding(boolean explicit, ASN1Encodable object)

Inherited from org.bouncycastle.asn1.ASN1ApplicationSpecific:
asn1EqualsencodedLengthgetApplicationTaggetContentsgetInstancegetLengthOfHeadergetObjectgetObjecthashCodeisConstructedtoString

Constructor Detail

DLApplicationSpecificback to summary
pack-priv DLApplicationSpecific(boolean isConstructed, int tag, byte[] octets)
DLApplicationSpecificback to summary
public DLApplicationSpecific(int tag, byte[] octets)

Create an application specific object from the passed in data. This will assume the data does not represent a constructed object.

Parameters
tag:int

the tag number for this object.

octets:byte[]

the encoding of the object's body.

DLApplicationSpecificback to summary
public DLApplicationSpecific(int tag, ASN1Encodable object) throws IOException

Create an application specific object with a tagging of explicit/constructed.

Parameters
tag:int

the tag number for this object.

object:ASN1Encodable

the object to be contained.

DLApplicationSpecificback to summary
public DLApplicationSpecific(boolean constructed, int tag, ASN1Encodable object) throws IOException

Create an application specific object with the tagging style given by the value of constructed.

Parameters
constructed:boolean

true if the object is constructed.

tag:int

the tag number for this object.

object:ASN1Encodable

the object to be contained.

DLApplicationSpecificback to summary
public DLApplicationSpecific(int tagNo, ASN1EncodableVector vec)

Create an application specific object which is marked as constructed

Parameters
tagNo:int

the tag number for this object.

vec:ASN1EncodableVector

the objects making up the application specific object.

Method Detail

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

Overrides org.bouncycastle.asn1.ASN1ApplicationSpecific.encode.

getEncodedVectorback to summary
private static byte[] getEncodedVector(ASN1EncodableVector vec)
getEncodingback to summary
private static byte[] getEncoding(boolean explicit, ASN1Encodable object) throws IOException