public enum ASN1Class extends Enum<ASN1Class>
| Enum Constant and Description |
|---|
APPLICATION |
CONTEXT |
PRIVATE |
UNIVERSAL |
| 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(String s) |
static ASN1Class |
fromTypeValue(int value) |
byte |
getClassValue() |
static ASN1Class |
valueOf(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 ASN1Class[] values()
for (ASN1Class c : ASN1Class.values()) System.out.println(c);
public static ASN1Class valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic byte getClassValue()
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)Copyright © 2018–2020 The Apache Software Foundation. All rights reserved.