Package org.ldaptive.asn1
Class AbstractDERTag
- java.lang.Object
-
- org.ldaptive.asn1.AbstractDERTag
-
- All Implemented Interfaces:
DERTag
- Direct Known Subclasses:
ApplicationDERTag
,ContextDERTag
,CustomDERTag
public abstract class AbstractDERTag extends Object implements DERTag
Abstract base class for custom DER tag types.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
constructed
Flag indicating whether value is primitive or constructed.private int
tagNo
Tag number.-
Fields inherited from interface org.ldaptive.asn1.DERTag
ASN_CONSTRUCTED
-
-
Constructor Summary
Constructors Constructor Description AbstractDERTag(int number, boolean isConstructed)
Creates a new tag with given tag number.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getTagByte()
Gets the value of this tag for encoding.int
getTagNo()
Gets the decimal value of the tag.boolean
isConstructed()
Determines whether the tag is constructed or primitive.String
toString()
-
-
-
Method Detail
-
getTagNo
public int getTagNo()
Description copied from interface:DERTag
Gets the decimal value of the tag.
-
isConstructed
public boolean isConstructed()
Description copied from interface:DERTag
Determines whether the tag is constructed or primitive.- Specified by:
isConstructed
in interfaceDERTag
- Returns:
- true if constructed, false if primitive.
-
getTagByte
public int getTagByte()
Description copied from interface:DERTag
Gets the value of this tag for encoding.- Specified by:
getTagByte
in interfaceDERTag
- Returns:
- byte value of this tag
-
-