Package org.ldaptive.asn1
Class CustomDERTag
- java.lang.Object
-
- org.ldaptive.asn1.AbstractDERTag
-
- org.ldaptive.asn1.CustomDERTag
-
- All Implemented Interfaces:
DERTag
public class CustomDERTag extends AbstractDERTag
Describes the tag of an application-specific, context-specific, or private DER type where the tag name may be specified for clarity in application code.
-
-
Field Summary
Fields Modifier and Type Field Description private String
tagName
Tag name.-
Fields inherited from interface org.ldaptive.asn1.DERTag
ASN_CONSTRUCTED
-
-
Constructor Summary
Constructors Constructor Description CustomDERTag(int number, String name, boolean isConstructed)
Creates a new custom DER tag.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
name()
Gets the name of the tag.String
toString()
-
Methods inherited from class org.ldaptive.asn1.AbstractDERTag
getTagByte, getTagNo, isConstructed
-
-
-
-
Field Detail
-
tagName
private final String tagName
Tag name.
-
-
Constructor Detail
-
CustomDERTag
public CustomDERTag(int number, String name, boolean isConstructed)
Creates a new custom DER tag.- Parameters:
number
- of the tagname
- of the tagisConstructed
- whether this tag is primitive or constructed
-
-
Method Detail
-
name
public String name()
Description copied from interface:DERTag
Gets the name of the tag.- Returns:
- tag name.
-
toString
public String toString()
- Overrides:
toString
in classAbstractDERTag
-
-