pasn.misc
Enum ASN1Class

java.lang.Object
  extended by java.lang.Enum<ASN1Class>
      extended by pasn.misc.ASN1Class
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ASN1Class>

public enum ASN1Class
extends java.lang.Enum<ASN1Class>

Represents tagged ASN.1 objects classes

Author:
ncottin

Enum Constant Summary
APPLICATION
           [APPLICATION X] tagging
CONTEXT
           [CONTEXT X] tagging
PRIVATE
           [PRIVATE X] tagging
UNIVERSAL
           Present only for completeness regarding ASN.1 specification.
 
Method Summary
 int getValue()
           
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're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNIVERSAL

public static final ASN1Class UNIVERSAL

Present only for completeness regarding ASN.1 specification. This constant is reserved to original ASN.1 objects and refers to ASN.1 types. Thus, it should not be used when tagging an ASN.1 object


APPLICATION

public static final ASN1Class APPLICATION

[APPLICATION X] tagging


CONTEXT

public static final ASN1Class CONTEXT

[CONTEXT X] tagging


PRIVATE

public static final ASN1Class PRIVATE

[PRIVATE X] tagging

Method Detail

values

public static final ASN1Class[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ASN1Class c : ASN1Class.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static ASN1Class 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 name

getValue

public final int getValue()