Package org.ldaptive.asn1
Interface DERTag
-
- All Known Implementing Classes:
AbstractDERTag,ApplicationDERTag,ContextDERTag,CustomDERTag,UniversalDERTag
public interface DERTagDescribes the tag of a DER-encoded type.
-
-
Field Summary
Fields Modifier and Type Field Description static intASN_CONSTRUCTEDConstructed tags should have the 6th bit set.
-
Method Summary
All Methods Instance Methods Abstract 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.Stringname()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
-
-