Package org.apache.kerby.asn1
Enum TagClass
- All Implemented Interfaces:
Serializable,Comparable<TagClass>
Tag class defined by the spec.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic TagClassfromTag(int tag) Converted from a tag value, which contains tag class info.static TagClassfromValue(int value) Converted from an integerintgetValue()Get the tag class value.booleanbooleanbooleanbooleanTell it's universal or not.static TagClassReturns the enum constant of this type with the specified name.static TagClass[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
-
UNIVERSAL
-
APPLICATION
-
CONTEXT_SPECIFIC
-
PRIVATE
-
-
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()Get the tag class value.- Returns:
- value
-
isUniversal
public boolean isUniversal()Tell it's universal or not.- Returns:
- true if it's universal otherwise false
-
isAppSpecific
public boolean isAppSpecific() -
isContextSpecific
public boolean isContextSpecific() -
isSpecific
public boolean isSpecific() -
fromValue
Converted from an integer- Parameters:
value- The int value of tag class- Returns:
- tag class
-
fromTag
Converted from a tag value, which contains tag class info.- Parameters:
tag- The int value of tag class- Returns:
- tag class
-