Package org.apache.kerby.asn1
Enum UniversalTag
- All Implemented Interfaces:
Serializable,Comparable<UniversalTag>
An enumeration for every ASN.1 UNIVERSAL type.
Ref. BERTags in BouncyCastle library.
- Author:
- Apache Directory Project
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic UniversalTagfromValue(int value) Retrieve the UniversalTag associated with a given valueintgetValue()toStr()static UniversalTagReturns the enum constant of this type with the specified name.static UniversalTag[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
-
CHOICE
-
ANY
-
EOC
-
BOOLEAN
-
INTEGER
-
BIT_STRING
-
OCTET_STRING
-
NULL
-
OBJECT_IDENTIFIER
-
OBJECT_DESCRIPTOR
-
EXTERNAL
-
REAL
-
ENUMERATED
-
EMBEDDED_PDV
-
UTF8_STRING
-
RELATIVE_OID
-
RESERVED_14
-
RESERVED_15
-
SEQUENCE
-
SEQUENCE_OF
-
SET
-
SET_OF
-
NUMERIC_STRING
-
PRINTABLE_STRING
-
T61_STRING
-
VIDEOTEX_STRING
-
IA5_STRING
-
UTC_TIME
-
GENERALIZED_TIME
-
GRAPHIC_STRING
-
VISIBLE_STRING
-
GENERAL_STRING
-
UNIVERSAL_STRING
-
CHARACTER_STRING
-
BMP_STRING
-
RESERVED_31
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()- Returns:
- The associated tag value
-
fromValue
Retrieve the UniversalTag associated with a given value- Parameters:
value- The integer value- Returns:
- The associated UniversalTag
-
toStr
-