org.apache.directory.shared.asn1.der
Class DEREnumerated

java.lang.Object
  extended byorg.apache.directory.shared.asn1.der.DERObject
      extended byorg.apache.directory.shared.asn1.der.DEREnumerated
All Implemented Interfaces:
DEREncodable

public class DEREnumerated
extends DERObject

DER Enumerated object.


Field Summary
 
Fields inherited from class org.apache.directory.shared.asn1.der.DERObject
APPLICATION, BIT_STRING, BMP_STRING, BOOLEAN, CONSTRUCTED, ENUMERATED, EXTERNAL, GENERAL_STRING, GENERALIZED_TIME, GRAPHIC_STRING, IA5_STRING, INTEGER, NULL, NUMERIC_STRING, OBJECT_IDENTIFIER, OCTET_STRING, PRINTABLE_STRING, SEQUENCE, SET, T61_STRING, tag, TAGGED, TERMINATOR, UNIVERSAL_STRING, UTC_TIME, UTF8_STRING, value, VIDEOTEX_STRING, VISIBLE_STRING
 
Constructor Summary
DEREnumerated(byte[] value)
          Basic DERObject constructor.
 
Method Summary
private static byte[] intToOctet(int integer)
           
 int intValue()
          Lazy accessor
private static int octetToInt(byte[] bytes)
           
static DEREnumerated valueOf(int integer)
          Static factory method, type-conversion operator.
 
Methods inherited from class org.apache.directory.shared.asn1.der.DERObject
encode, equals, getOctets, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DEREnumerated

public DEREnumerated(byte[] value)
Basic DERObject constructor.

Method Detail

valueOf

public static DEREnumerated valueOf(int integer)
Static factory method, type-conversion operator.


intValue

public int intValue()
Lazy accessor

Returns:
integer value

octetToInt

private static int octetToInt(byte[] bytes)

intToOctet

private static byte[] intToOctet(int integer)


Copyright © 2003-2006 . All Rights Reserved.