Package org.ldaptive.asn1
Class AbstractDERTag
java.lang.Object
org.ldaptive.asn1.AbstractDERTag
- All Implemented Interfaces:
DERTag
- Direct Known Subclasses:
ApplicationDERTag
,ContextDERTag
,CustomDERTag
Abstract base class for custom DER tag types.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
Flag indicating whether value is primitive or constructed.private final int
Tag number.Fields inherited from interface org.ldaptive.asn1.DERTag
ASN_CONSTRUCTED
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractDERTag
(int number, boolean isConstructed) Creates a new tag with given tag number. -
Method Summary
-
Field Details
-
tagNo
private final int tagNoTag number. -
constructed
private final boolean constructedFlag indicating whether value is primitive or constructed.
-
-
Constructor Details
-
AbstractDERTag
public AbstractDERTag(int number, boolean isConstructed) Creates a new tag with given tag number.- Parameters:
number
- Tag number.isConstructed
- True for constructed tag, false otherwise.
-
-
Method Details
-
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
-
toString
-