Top Description Fields Constructors Methods
org.bouncycastle.asn1

public Class DERTaggedObject

extends ASN1TaggedObject
Class Inheritance
Imports
java.io.IOException

DER TaggedObject - in ASN.1 notation this is any object preceded by a [n] where n is some number - these are assumed to follow the construction rules (as with sequences).

Field Summary

Inherited from org.bouncycastle.asn1.ASN1TaggedObject:
explicitnessobjtagClasstagNo

Constructor Summary

AccessConstructor and Description
public
DERTaggedObject(int tagNo, ASN1Encodable encodable)

public
DERTaggedObject(int tagClass, int tagNo, ASN1Encodable obj)

public
DERTaggedObject(boolean
true if an explicitly tagged object.
explicit
,
int
the tag number for this object.
tagNo
,
ASN1Encodable
the tagged object.
obj
)

public
DERTaggedObject(boolean explicit, int tagClass, int tagNo, ASN1Encodable obj)

pack-priv
DERTaggedObject(int explicitness, int tagClass, int tagNo, ASN1Encodable obj)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
encode(ASN1OutputStream out, boolean withTag)

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

pack-priv boolean
encodeConstructed()

Implements abstract org.bouncycastle.asn1.ASN1Primitive.encodeConstructed.

Return true if this objected is a CONSTRUCTED one, false otherwise.
pack-priv int
pack-priv ASN1Sequence
pack-priv ASN1TaggedObject
replaceTag(int tagClass, int tagNo)

Implements abstract org.bouncycastle.asn1.ASN1TaggedObject.replaceTag.

pack-priv ASN1Primitive
toDERObject()

Overrides org.bouncycastle.asn1.ASN1TaggedObject.toDERObject.

Return the current object as one which encodes using Distinguished Encoding Rules.
pack-priv ASN1Primitive
toDLObject()

Overrides org.bouncycastle.asn1.ASN1TaggedObject.toDLObject.

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

Constructor Detail

DERTaggedObjectback to summary
public DERTaggedObject(int tagNo, ASN1Encodable encodable)
DERTaggedObjectback to summary
public DERTaggedObject(int tagClass, int tagNo, ASN1Encodable obj)
DERTaggedObjectback to summary
public DERTaggedObject(boolean explicit, int tagNo, ASN1Encodable obj)
Parameters
explicit:boolean

true if an explicitly tagged object.

tagNo:int

the tag number for this object.

obj:ASN1Encodable

the tagged object.

DERTaggedObjectback to summary
public DERTaggedObject(boolean explicit, int tagClass, int tagNo, ASN1Encodable obj)
DERTaggedObjectback to summary
pack-priv DERTaggedObject(int explicitness, int tagClass, int tagNo, ASN1Encodable obj)

Method Detail

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

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

encodeConstructedback to summary
pack-priv boolean encodeConstructed()

Implements abstract org.bouncycastle.asn1.ASN1Primitive.encodeConstructed.

Doc from org.bouncycastle.asn1.ASN1Primitive.encodeConstructed.

Return true if this objected is a CONSTRUCTED one, false otherwise.

Returns:boolean

true if CONSTRUCTED bit set on object's tag, false otherwise.

encodedLengthback to summary
pack-priv int encodedLength(boolean withTag) throws IOException

Implements abstract org.bouncycastle.asn1.ASN1Primitive.encodedLength.

rebuildConstructedback to summary
pack-priv ASN1Sequence rebuildConstructed(ASN1Primitive primitive)

Implements abstract org.bouncycastle.asn1.ASN1TaggedObject.rebuildConstructed.

replaceTagback to summary
pack-priv ASN1TaggedObject replaceTag(int tagClass, int tagNo)

Implements abstract org.bouncycastle.asn1.ASN1TaggedObject.replaceTag.

toDERObjectback to summary
pack-priv ASN1Primitive toDERObject()

Overrides org.bouncycastle.asn1.ASN1TaggedObject.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.ASN1TaggedObject.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.