org.mozilla.jss.asn1
public class Tag extends Object
Nested Class Summary | |
---|---|
static class | Tag.Class
An enumeration of the ASN.1 tag classes. |
Field Summary | |
---|---|
static Tag.Class | APPLICATION
A tag class. |
static Tag.Class | CONTEXT_SPECIFIC
A tag class. |
static Tag | END_OF_CONTENTS
The end-of-contents marker for indefinite length encoding.
|
static Tag | EOC
An alias for END_OF_CONTENTS. |
static Tag.Class | PRIVATE
A tag class. |
static Tag.Class | UNIVERSAL
A tag class. |
Constructor Summary | |
---|---|
Tag(Tag.Class clazz, long num)
Creates a tag with the given class and number. | |
Tag(long num)
Creates a CONTEXT-SPECIFIC tag with the given tag number. |
Method Summary | |
---|---|
boolean | equals(Object obj)
Compares two tags for equality. |
static Tag | get(long num)
Returns an instance of a context-specific tag with the given number.
|
long | getNum()
Returns the tag number. |
Tag.Class | getTagClass()
Returns the tag class. |
int | hashCode() |
String | toString()
Returns a String representation of the tag. |
Parameters: clazz The class of the tag. num The tag number.
Parameters: num The tag number.