Enum ASN1Type
- java.lang.Object
-
- java.lang.Enum<ASN1Type>
-
- org.apache.sshd.common.util.io.der.ASN1Type
-
-
Enum Constant Summary
-
Constructor Summary
Constructors Modifier Constructor Description private
ASN1Type(byte typeVal)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ASN1Type
fromDERValue(int value)
The first byte in DER encoding is made of following fieldsstatic 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.
-
-
-
Enum Constant Detail
-
ANY
public static final ASN1Type ANY
-
BOOLEAN
public static final ASN1Type BOOLEAN
-
INTEGER
public static final ASN1Type INTEGER
-
BIT_STRING
public static final ASN1Type BIT_STRING
-
OCTET_STRING
public static final ASN1Type OCTET_STRING
-
NULL
public static final ASN1Type NULL
-
OBJECT_IDENTIFIER
public static final ASN1Type OBJECT_IDENTIFIER
-
REAL
public static final ASN1Type REAL
-
ENUMERATED
public static final ASN1Type ENUMERATED
-
RELATIVE_OID
public static final ASN1Type RELATIVE_OID
-
SEQUENCE
public static final ASN1Type SEQUENCE
-
SET
public static final ASN1Type SET
-
NUMERIC_STRING
public static final ASN1Type NUMERIC_STRING
-
PRINTABLE_STRING
public static final ASN1Type PRINTABLE_STRING
-
T61_STRING
public static final ASN1Type T61_STRING
-
VIDEOTEX_STRING
public static final ASN1Type VIDEOTEX_STRING
-
IA5_STRING
public static final ASN1Type IA5_STRING
-
GRAPHIC_STRING
public static final ASN1Type GRAPHIC_STRING
-
ISO646_STRING
public static final ASN1Type ISO646_STRING
-
GENERAL_STRING
public static final ASN1Type GENERAL_STRING
-
UTF8_STRING
public static final ASN1Type UTF8_STRING
-
UNIVERSAL_STRING
public static final ASN1Type UNIVERSAL_STRING
-
BMP_STRING
public static final ASN1Type BMP_STRING
-
UTC_TIME
public static final ASN1Type UTC_TIME
-
GENERALIZED_TIME
public static final ASN1Type GENERALIZED_TIME
-
-
Field Detail
-
VALUES
public static final java.util.Set<ASN1Type> VALUES
-
typeValue
private final byte typeValue
-
-
Method Detail
-
values
public static ASN1Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ASN1Type c : ASN1Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ASN1Type valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getTypeValue
public byte getTypeValue()
-
fromName
public static ASN1Type fromName(java.lang.String s)
-
fromDERValue
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 | -------------------------------------------------
- Parameters:
value
- The original DER encoded byte- Returns:
- The
ASN1Type
value -null
if no match found - See Also:
fromTypeValue(int)
-
-