public enum UniversalDERTag extends Enum<UniversalDERTag> implements DERTag
Enum Constant and Description |
---|
BITSTR
BITSTRING type.
|
BMPSTR
BMPString type.
|
BOOL
BOOLEAN type.
|
CHARSTR
CharacterString type.
|
EMBPDV
EMBEDDED PDV type.
|
ENUM
ENUMERATED type.
|
EXT
EXTERNAL type.
|
GENSTR
GeneralString type.
|
GENTIME
GeneralizedTime type.
|
GRAPHICSTR
GraphicString type.
|
IA5STR
IA5String type.
|
INT
INTEGER type.
|
ISO646STR
ISO646String type.
|
NULL
NULL type.
|
NUMSTR
NumericString type.
|
OCTSTR
OCTETSTRING type.
|
ODESC
ObjectDescriptor type.
|
OID
OBJECT IDENTIFIER type.
|
PRINTSTR
PrintableString type.
|
REAL
REAL type.
|
ROID
RELATIVE-OID type.
|
SEQ
SEQUENCE type.
|
SET
SET type.
|
T61STR
T61String type.
|
UNISTR
UniversalString type.
|
UTCTIME
UTCTime type.
|
UTF8STR
UTF8String type.
|
VTEXSTR
VideotexString type.
|
Modifier and Type | Field and Description |
---|---|
private boolean |
constructed
Flag indicating whether value is primitive or constructed.
|
static int |
TAG_CLASS
Universal tag class is 00b in first two high-order bytes.
|
private static Map<String,UniversalDERTag> |
TAGNAME_MAP
Maps tag names to tags.
|
private int |
tagNo
Tag number.
|
private static Map<Integer,UniversalDERTag> |
TAGNO_MAP
Maps tag numbers to tags.
|
ASN_CONSTRUCTED
Modifier and Type | Method and Description |
---|---|
static UniversalDERTag |
fromTagName(String name)
Looks up a universal tag from a tag name.
|
static UniversalDERTag |
fromTagNo(int number)
Looks up a universal tag from a tag number.
|
int |
getTagByte()
Gets the value of this tag for encoding.
|
int |
getTagNo()
Gets the decimal value of the tag.
|
boolean |
isConstructed()
Determines whether the tag is constructed or primitive.
|
static UniversalDERTag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UniversalDERTag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UniversalDERTag BOOL
public static final UniversalDERTag INT
public static final UniversalDERTag BITSTR
public static final UniversalDERTag OCTSTR
public static final UniversalDERTag NULL
public static final UniversalDERTag OID
public static final UniversalDERTag ODESC
public static final UniversalDERTag EXT
public static final UniversalDERTag REAL
public static final UniversalDERTag ENUM
public static final UniversalDERTag EMBPDV
public static final UniversalDERTag UTF8STR
public static final UniversalDERTag ROID
public static final UniversalDERTag SEQ
public static final UniversalDERTag SET
public static final UniversalDERTag NUMSTR
public static final UniversalDERTag PRINTSTR
public static final UniversalDERTag T61STR
public static final UniversalDERTag VTEXSTR
public static final UniversalDERTag IA5STR
public static final UniversalDERTag UTCTIME
public static final UniversalDERTag GENTIME
public static final UniversalDERTag GRAPHICSTR
public static final UniversalDERTag ISO646STR
public static final UniversalDERTag GENSTR
public static final UniversalDERTag UNISTR
public static final UniversalDERTag CHARSTR
public static final UniversalDERTag BMPSTR
public static final int TAG_CLASS
private static final Map<Integer,UniversalDERTag> TAGNO_MAP
private static final Map<String,UniversalDERTag> TAGNAME_MAP
private final int tagNo
private final boolean constructed
public static UniversalDERTag[] values()
for (UniversalDERTag c : UniversalDERTag.values()) System.out.println(c);
public static UniversalDERTag valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getTagNo()
public boolean isConstructed()
isConstructed
in interface DERTag
public int getTagByte()
DERTag
getTagByte
in interface DERTag
public static UniversalDERTag fromTagNo(int number)
number
- tag number.IllegalArgumentException
- if tag is unknownpublic static UniversalDERTag fromTagName(String name)
valueOf(String)
in that it does not
throw for unknown names.name
- tag name.Copyright © 2003-2019 Virginia Tech. All Rights Reserved.