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 booleanconstructedFlag indicating whether value is primitive or constructed.private inttagNoTag 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 intgetTagByte()Gets the value of this tag for encoding.intgetTagNo()Gets the decimal value of the tag.booleanisConstructed()Determines whether the tag is constructed or primitive.StringtoString()
-
-
-
Method Detail
-
getTagNo
public int getTagNo()
Description copied from interface:DERTagGets the decimal value of the tag.
-
isConstructed
public boolean isConstructed()
Description copied from interface:DERTagDetermines whether the tag is constructed or primitive.- Specified by:
isConstructedin interfaceDERTag- Returns:
- true if constructed, false if primitive.
-
getTagByte
public int getTagByte()
Description copied from interface:DERTagGets the value of this tag for encoding.- Specified by:
getTagBytein interfaceDERTag- Returns:
- byte value of this tag
-
-