Top Description Fields Constructors Methods
org.bouncycastle.asn1

public Class DLExternal

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

Class representing the Definite-Length-type External

Field Summary

Inherited from org.bouncycastle.asn1.ASN1External:
dataValueDescriptordirectReferenceencodedLenencodingexternalContentindirectReference

Constructor Summary

AccessConstructor and Description
public
DLExternal(ASN1EncodableVector vector)

Construct a Definite-Length EXTERNAL object, the input encoding vector must have exactly two elements on it.

public
DLExternal(ASN1ObjectIdentifier
The direct reference or null if not set.
directReference
,
ASN1Integer
The indirect reference or null if not set.
indirectReference
,
ASN1Primitive
The data value descriptor or null if not set.
dataValueDescriptor
,
DERTaggedObject
The external data in its encoded form.
externalData
)

Creates a new instance of DERExternal See X.690 for more informations about the meaning of these parameters

public
DLExternal(ASN1ObjectIdentifier
The direct reference or null if not set.
directReference
,
ASN1Integer
The indirect reference or null if not set.
indirectReference
,
ASN1Primitive
The data value descriptor or null if not set.
dataValueDescriptor
,
int
The encoding to be used for the external data
encoding
,
ASN1Primitive
The external data
externalData
)

Creates a new instance of Definite-Length External.

Method Summary

Modifier and TypeMethod and Description
pack-priv void
Inherited from org.bouncycastle.asn1.ASN1External:
asn1EqualsencodedLengthgetDataValueDescriptorgetDirectReferencegetEncodinggetExternalContentgetIndirectReferencehashCodeisConstructedtoDERObject

Constructor Detail

DLExternalback to summary
public DLExternal(ASN1EncodableVector vector)

Construct a Definite-Length EXTERNAL object, the input encoding vector must have exactly two elements on it.

Acceptable input formats are:

Exceptions
IllegalArgumentException:
if input size is wrong, or
DLExternalback to summary
public DLExternal(ASN1ObjectIdentifier directReference, ASN1Integer indirectReference, ASN1Primitive dataValueDescriptor, DERTaggedObject externalData)

Creates a new instance of DERExternal See X.690 for more informations about the meaning of these parameters

Parameters
directReference:ASN1ObjectIdentifier

The direct reference or null if not set.

indirectReference:ASN1Integer

The indirect reference or null if not set.

dataValueDescriptor:ASN1Primitive

The data value descriptor or null if not set.

externalData:DERTaggedObject

The external data in its encoded form.

DLExternalback to summary
public DLExternal(ASN1ObjectIdentifier directReference, ASN1Integer indirectReference, ASN1Primitive dataValueDescriptor, int encoding, ASN1Primitive externalData)

Creates a new instance of Definite-Length External. See X.690 for more informations about the meaning of these parameters

Parameters
directReference:ASN1ObjectIdentifier

The direct reference or null if not set.

indirectReference:ASN1Integer

The indirect reference or null if not set.

dataValueDescriptor:ASN1Primitive

The data value descriptor or null if not set.

encoding:int

The encoding to be used for the external data

externalData:ASN1Primitive

The external data

Method Detail

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

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