Top Description Fields Constructors Methods
org.bouncycastle.asn1

public Class DERApplicationSpecific

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
DERApplicationSpecific(boolean isConstructed, int tag, byte[] octets)

public
DERApplicationSpecific(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
DERApplicationSpecific(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
DERApplicationSpecific(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
DERApplicationSpecific(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

DERApplicationSpecificback to summary
pack-priv DERApplicationSpecific(boolean isConstructed, int tag, byte[] octets)
DERApplicationSpecificback to summary
public DERApplicationSpecific(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.

DERApplicationSpecificback to summary
public DERApplicationSpecific(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.

DERApplicationSpecificback to summary
public DERApplicationSpecific(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.

DERApplicationSpecificback to summary
public DERApplicationSpecific(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