Package org.ldaptive.asn1
Class ContextDERTag
java.lang.Object
org.ldaptive.asn1.AbstractDERTag
org.ldaptive.asn1.ContextDERTag
- All Implemented Interfaces:
DERTag
Generic context-specific tag.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Context-specific class is 10b in first two high-order bits.static final String
Generic tag name "CTX" for a context-specific type.Fields inherited from interface org.ldaptive.asn1.DERTag
ASN_CONSTRUCTED
-
Constructor Summary
ConstructorsConstructorDescriptionContextDERTag
(int number, boolean isConstructed) Creates a new context-specific tag with given tag number. -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the value of this tag for encoding.name()
Gets the name of the tag.Methods inherited from class org.ldaptive.asn1.AbstractDERTag
getTagNo, isConstructed, toString
-
Field Details
-
TAG_NAME
Generic tag name "CTX" for a context-specific type.- See Also:
-
TAG_CLASS
public static final int TAG_CLASSContext-specific class is 10b in first two high-order bits.- See Also:
-
-
Constructor Details
-
ContextDERTag
public ContextDERTag(int number, boolean isConstructed) Creates a new context-specific tag with given tag number.- Parameters:
number
- Tag number.isConstructed
- True for constructed tag, false otherwise.
-
-
Method Details
-
getTagByte
public int getTagByte()Description copied from interface:DERTag
Gets the value of this tag for encoding.- Specified by:
getTagByte
in interfaceDERTag
- Overrides:
getTagByte
in classAbstractDERTag
- Returns:
- byte value of this tag
-
name
Description copied from interface:DERTag
Gets the name of the tag.- Returns:
- tag name.
-