Top Fields Constructors Methods
org.apache.sshd.common.util.io.der

public final Enum ASN1Class

extends Enum<ASN1Class>
Class Inheritance
Imports
java.util.Arrays, .Collections, .List, org.apache.sshd.common.util.GenericUtils

Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
public static final ASN1Class
private final byte
public static final ASN1Class
public static final ASN1Class
public static final ASN1Class
public static final List<ASN1Class>

Constructor Summary

AccessConstructor and Description
private
ASN1Class(byte classValue)

Method Summary

Modifier and TypeMethod and Description
public static ASN1Class

Returns:

The ASN1Class value - null if no match found
fromDERValue
(int
The original DER encoded byte
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                 |
-------------------------------------------------
 
public static ASN1Class
public static ASN1Class

Returns:

The ASN1Class value - null if no match found
fromTypeValue
(int
The "pure" value - unshifted and with no extras
value
)

public byte
public static ASN1Class
public static ASN1Class[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

APPLICATIONback to summary
public static final ASN1Class APPLICATION
byteValueback to summary
private final byte byteValue
CONTEXTback to summary
public static final ASN1Class CONTEXT
PRIVATEback to summary
public static final ASN1Class PRIVATE
UNIVERSALback to summary
public static final ASN1Class UNIVERSAL
VALUESback to summary
public static final List<ASN1Class> VALUES

Constructor Detail

ASN1Classback to summary
private ASN1Class(byte classValue)

Method Detail

fromDERValueback to summary
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                 |
-------------------------------------------------
 
Parameters
value:int

The original DER encoded byte

Returns:ASN1Class

The ASN1Class value - null if no match found

See Also
fromTypeValue(int)
fromNameback to summary
public static ASN1Class fromName(String s)
fromTypeValueback to summary
public static ASN1Class fromTypeValue(int value)
Parameters
value:int

The "pure" value - unshifted and with no extras

Returns:ASN1Class

The ASN1Class value - null if no match found

getClassValueback to summary
public byte getClassValue()
valueOfback to summary
public static ASN1Class valueOf(String name)
valuesback to summary
public static ASN1Class[] values()