org.apache.asn1.der
Class DERInteger

java.lang.Object
  extended by org.apache.asn1.der.DERObject
      extended by org.apache.asn1.der.DERInteger
All Implemented Interfaces:
DEREncodable

public class DERInteger
extends DERObject

DER Integer object.


Field Summary
 
Fields inherited from class org.apache.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
DERInteger(byte[] value)
          Basic DERObject constructor.
 
Method Summary
private static byte[] intToOctet(int integer)
           
 int intValue()
          Lazy accessor
private static int octetToInt(byte[] bytes)
           
static DERInteger valueOf(int integer)
          Static factory method, type-conversion operator.
 
Methods inherited from class org.apache.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

DERInteger

DERInteger(byte[] value)
Basic DERObject constructor.

Method Detail

valueOf

public static DERInteger 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 © 2005-2009 . All Rights Reserved.