Enum Constant and Description |
---|
ANY |
BIT_STRING |
BMP_STRING |
BOOLEAN |
ENUMERATED |
GENERAL_STRING |
GENERALIZED_TIME |
GRAPHIC_STRING |
IA5_STRING |
INTEGER |
ISO646_STRING |
NULL |
NUMERIC_STRING |
OBJECT_IDENTIFIER |
OCTET_STRING |
PRINTABLE_STRING |
REAL |
RELATIVE_OID |
SEQUENCE |
SET |
T61_STRING |
UNIVERSAL_STRING |
UTC_TIME |
UTF8_STRING |
VIDEOTEX_STRING |
Modifier and Type | Field and Description |
---|---|
private byte |
typeValue |
static java.util.Set<ASN1Type> |
VALUES |
Modifier and Type | Method and Description |
---|---|
static ASN1Type |
fromDERValue(int value)
The first byte in DER encoding is made of following fields
|
static ASN1Type |
fromName(java.lang.String s) |
static ASN1Type |
fromTypeValue(int value) |
byte |
getTypeValue() |
static ASN1Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ASN1Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ASN1Type ANY
public static final ASN1Type BOOLEAN
public static final ASN1Type INTEGER
public static final ASN1Type BIT_STRING
public static final ASN1Type OCTET_STRING
public static final ASN1Type NULL
public static final ASN1Type OBJECT_IDENTIFIER
public static final ASN1Type REAL
public static final ASN1Type ENUMERATED
public static final ASN1Type RELATIVE_OID
public static final ASN1Type SEQUENCE
public static final ASN1Type SET
public static final ASN1Type NUMERIC_STRING
public static final ASN1Type PRINTABLE_STRING
public static final ASN1Type T61_STRING
public static final ASN1Type VIDEOTEX_STRING
public static final ASN1Type IA5_STRING
public static final ASN1Type GRAPHIC_STRING
public static final ASN1Type ISO646_STRING
public static final ASN1Type GENERAL_STRING
public static final ASN1Type UTF8_STRING
public static final ASN1Type UNIVERSAL_STRING
public static final ASN1Type BMP_STRING
public static final ASN1Type UTC_TIME
public static final ASN1Type GENERALIZED_TIME
public static final java.util.Set<ASN1Type> VALUES
private final byte typeValue
public static ASN1Type[] values()
for (ASN1Type c : ASN1Type.values()) System.out.println(c);
public static ASN1Type 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 getTypeValue()
public static ASN1Type fromName(java.lang.String s)
public static ASN1Type 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 byteASN1Type
value - null
if no match foundfromTypeValue(int)