Package org.ldaptive.asn1
Interface DERTag
- All Known Implementing Classes:
AbstractDERTag
,ApplicationDERTag
,ContextDERTag
,CustomDERTag
,UniversalDERTag
public interface DERTag
Describes the tag of a DER-encoded type.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Constructed tags should have the 6th bit set. -
Method Summary
-
Field Details
-
ASN_CONSTRUCTED
static final int ASN_CONSTRUCTEDConstructed tags should have the 6th bit set.- See Also:
-
-
Method Details
-
getTagNo
int getTagNo()Gets the decimal value of the tag.- Returns:
- decimal tag number.
-
name
String name()Gets the name of the tag.- Returns:
- tag name.
-
isConstructed
boolean isConstructed()Determines whether the tag is constructed or primitive.- Returns:
- true if constructed, false if primitive.
-
getTagByte
int getTagByte()Gets the value of this tag for encoding.- Returns:
- byte value of this tag
-