Top Description Fields Constructors Methods
org.bouncycastle.asn1

public Class DLExternal

extends ASN1External
Class Inheritance

Class representing the Definite-Length-type External

Field Summary

Inherited from org.bouncycastle.asn1.ASN1External:
dataValueDescriptordirectReferenceencodingexternalContentindirectReferenceTYPE

Constructor Summary

AccessConstructor and Description
public
DLExternal(ASN1EncodableVector vector)

Deprecated Use DLExternal#DLExternal(DLSequence) instead.
Construct a Definite-Length EXTERNAL object, the input encoding vector must have exactly two elements on it.
public
DLExternal(DLSequence sequence)

Construct a Definite-Length EXTERNAL object, the input sequence 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 ASN1Sequence
pack-priv ASN1Primitive
toDLObject()

Overrides org.bouncycastle.asn1.ASN1External.toDLObject.

Return the current object as one which encodes using Definite Length encoding.
Inherited from org.bouncycastle.asn1.ASN1External:
asn1EqualsencodeencodeConstructedencodedLengthgetDataValueDescriptorgetDirectReferencegetEncodinggetExternalContentgetIndirectReferencegetInstancegetInstancehashCodetoDERObject

Constructor Detail

DLExternalback to summary
public DLExternal(ASN1EncodableVector vector)

Deprecated

Use DLExternal#DLExternal(DLSequence) instead.

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 input is not an acceptable format
DLExternalback to summary
public DLExternal(DLSequence sequence)

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

Acceptable input formats are:

Exceptions
IllegalArgumentException:
if input size is wrong, or input is not an acceptable format
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

buildSequenceback to summary
pack-priv ASN1Sequence buildSequence()

Implements abstract org.bouncycastle.asn1.ASN1External.buildSequence.

toDLObjectback to summary
pack-priv ASN1Primitive toDLObject()

Overrides org.bouncycastle.asn1.ASN1External.toDLObject.

Doc from org.bouncycastle.asn1.ASN1Primitive.toDLObject.

Return the current object as one which encodes using Definite Length encoding.

Returns:ASN1Primitive

a DL version of this.