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
Fields Modifier and Type Field Description static int
ASN_CONSTRUCTED
Constructed tags should have the 6th bit set.
-
Method Summary
All Methods Instance Methods Abstract 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
name()
Gets the name of the tag.
-
-
-
Field Detail
-
ASN_CONSTRUCTED
static final int ASN_CONSTRUCTED
Constructed tags should have the 6th bit set.- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-