org.mozilla.jss.asn1

Class ENUMERATED

Implemented Interfaces:
ASN1Value

public class ENUMERATED
extends INTEGER
implements ASN1Value

Represents an ASN.1 ENUMERATED value. This has the same interface as INTEGER

Nested Class Summary

static class
ENUMERATED.Template
A template for decoding ENUMERATED values from their BER encodings.

Nested classes/interfaces inherited from class org.mozilla.jss.asn1.INTEGER

INTEGER.Template

Field Summary

static Tag
TAG

Fields inherited from class org.mozilla.jss.asn1.INTEGER

FORM, TAG

Constructor Summary

ENUMERATED(long val)
Creates a new ENUMERATED value from a long.

Method Summary

Tag
getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.
static ASN1Template
getTemplate()
long
getValue()
Returns the value as a long.

Methods inherited from class org.mozilla.jss.asn1.INTEGER

encode, encode, encode, getContentLength, getTag, getTemplate, main

Field Details

TAG

public static final Tag TAG

Constructor Details

ENUMERATED

public ENUMERATED(long val)
Creates a new ENUMERATED value from a long.

Method Details

getTag

public Tag getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.
Specified by:
getTag in interface ASN1Value
Overrides:
getTag in interface INTEGER


getTemplate

public static ASN1Template getTemplate()
Overrides:
getTemplate in interface INTEGER


getValue

public long getValue()
Returns the value as a long.