4 * An ASN1 type for an Integer, represented with a BigInteger
\r
5 * Copyright (c) 2007 Henri Torgemane
\r
7 * See LICENSE.txt for full license information.
\r
9 package com.hurlant.util.der
\r
11 import com.hurlant.math.BigInteger;
\r
12 import flash.utils.ByteArray;
\r
14 public class Integer extends BigInteger implements IAsn1Type
\r
16 private var type:uint;
\r
17 private var len:uint;
\r
19 public function Integer(type:uint, length:uint, b:ByteArray) {
\r
25 public function getLength():uint
\r
30 public function getType():uint
\r
35 override public function toString(radix:Number=0):String {
\r
36 return DER.indent+"Integer["+type+"]["+len+"]["+super.toString(16)+"]";
\r
39 public function toDER():ByteArray {
\r