|
JSS 3.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mozilla.jss.asn1.Tag
Represents an ASN.1 Tag. A tag consists of a class and a number.
Inner 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. |
private long |
num
|
private static int |
numTagInstances
|
static Tag.Class |
PRIVATE
A tag class. |
private static Tag[] |
tagInstances
|
private Tag.Class |
tClass
|
static Tag.Class |
UNIVERSAL
A tag class. |
Constructor Summary | |
private |
Tag()
|
|
Tag(long num)
Creates a CONTEXT-SPECIFIC tag with the given tag number. |
|
Tag(Tag.Class clazz,
long num)
Creates a tag with the given class and number. |
Method Summary | |
(package private) static void |
|
boolean |
equals(java.lang.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()
|
java.lang.String |
toString()
Returns a String representation of the tag. |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
Field Detail |
private long num
private Tag.Class tClass
public static final Tag.Class UNIVERSAL
public static final Tag.Class APPLICATION
public static final Tag.Class CONTEXT_SPECIFIC
public static final Tag.Class PRIVATE
public static final Tag END_OF_CONTENTS
public static final Tag EOC
private static final int numTagInstances
private static Tag[] tagInstances
Constructor Detail |
private Tag()
public Tag(Tag.Class clazz, long num)
clazz
- The class of the tag.num
- The tag number.public Tag(long num)
num
- The tag number.Method Detail |
public long getNum()
public Tag.Class getTagClass()
static void()
public static Tag get(long num)
public int hashCode()
public boolean equals(java.lang.Object obj)
public java.lang.String toString()
|
JSS 3.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |