Top Description Fields Constructors Methods
org.bouncycastle.asn1

public Class DERExternal

extends ASN1External
Class Inheritance

Class representing the DER-type External

Field Summary

Inherited from org.bouncycastle.asn1.ASN1External:
dataValueDescriptordirectReferenceencodingexternalContentindirectReferenceTYPE

Constructor Summary

AccessConstructor and Description
public
DERExternal(ASN1EncodableVector vector)
Deprecated Use DERExternal#DERExternal(DERSequence) instead.

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

public
DERExternal(DERSequence sequence)

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

public
DERExternal(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
DERExternal(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 DERExternal.

Method Summary

Modifier and TypeMethod and Description
pack-priv ASN1Sequence
pack-priv ASN1Primitive
toDERObject()

Overrides org.bouncycastle.asn1.ASN1External.toDERObject.

Return the current object as one which encodes using Distinguished Encoding Rules.

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:
asn1EqualsencodeencodeConstructedencodedLengthgetDataValueDescriptorgetDirectReferencegetEncodinggetExternalContentgetIndirectReferencegetInstancegetInstancehashCode

Constructor Detail

DERExternalback to summary
public DERExternal(ASN1EncodableVector vector)

Deprecated

Use DERExternal#DERExternal(DERSequence) instead.

Construct a DER 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
DERExternalback to summary
public DERExternal(DERSequence sequence)

Construct a DER 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
DERExternalback to summary
public DERExternal(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.

DERExternalback to summary
public DERExternal(ASN1ObjectIdentifier directReference, ASN1Integer indirectReference, ASN1Primitive dataValueDescriptor, int encoding, ASN1Primitive 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.

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.

toDERObjectback to summary
pack-priv ASN1Primitive toDERObject()

Overrides org.bouncycastle.asn1.ASN1External.toDERObject.

Doc from org.bouncycastle.asn1.ASN1Primitive.toDERObject.

Return the current object as one which encodes using Distinguished Encoding Rules.

Returns:ASN1Primitive

a DER version of this.

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.