Enum Constant and Description |
---|
APPLICATION |
CONTEXT |
PRIVATE |
UNIVERSAL |
Modifier and Type | Field and Description |
---|---|
private byte |
byteValue |
static java.util.List<ASN1Class> |
VALUES |
Modifier and Type | Method and Description |
---|---|
static ASN1Class |
fromDERValue(int value)
The first byte in DER encoding is made of following fields
|
static ASN1Class |
fromName(java.lang.String s) |
static ASN1Class |
fromTypeValue(int value) |
byte |
getClassValue() |
static ASN1Class |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ASN1Class[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ASN1Class UNIVERSAL
public static final ASN1Class APPLICATION
public static final ASN1Class CONTEXT
public static final ASN1Class PRIVATE
public static final java.util.List<ASN1Class> VALUES
private final byte byteValue
public static ASN1Class[] values()
for (ASN1Class c : ASN1Class.values()) System.out.println(c);
public static ASN1Class valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic byte getClassValue()
public static ASN1Class fromName(java.lang.String s)
public static ASN1Class fromDERValue(int value)
The first byte in DER encoding is made of following fields
------------------------------------------------- |Bit 8|Bit 7|Bit 6|Bit 5|Bit 4|Bit 3|Bit 2|Bit 1| ------------------------------------------------- | Class | CF | Type | -------------------------------------------------
value
- The original DER encoded byteASN1Class
value - null
if no match foundfromTypeValue(int)