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 booleanFlag indicating whether value is primitive or constructed.private final intTag 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: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
-
toString
-