Top Description Fields Constructors Methods
org.bouncycastle.asn1

public Class BERApplicationSpecific

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

An indefinite-length encoding version of an ASN.1 ApplicationSpecific object.

Field Summary

Inherited from org.bouncycastle.asn1.ASN1ApplicationSpecific:
isConstructedoctetstag

Constructor Summary

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

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

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

BERApplicationSpecificback to summary
public BERApplicationSpecific(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.

BERApplicationSpecificback to summary
public BERApplicationSpecific(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