Bug:Fix file validation issue
[vnfsdk/refrepo.git] / vnfmarket / src / main / webapp / vnfmarket / node_modules / socket.io-client / lib / vendor / web-socket-js / flash-src / com / hurlant / util / der / Integer.as
1 /**\r
2  * Integer\r
3  * \r
4  * An ASN1 type for an Integer, represented with a BigInteger\r
5  * Copyright (c) 2007 Henri Torgemane\r
6  * \r
7  * See LICENSE.txt for full license information.\r
8  */\r
9 package com.hurlant.util.der\r
10 {\r
11         import com.hurlant.math.BigInteger;\r
12         import flash.utils.ByteArray;\r
13 \r
14         public class Integer extends BigInteger implements IAsn1Type\r
15         {\r
16                 private var type:uint;\r
17                 private var len:uint;\r
18                 \r
19                 public function Integer(type:uint, length:uint, b:ByteArray) {\r
20                         this.type = type;\r
21                         this.len = length;\r
22                         super(b);\r
23                 }\r
24                 \r
25                 public function getLength():uint\r
26                 {\r
27                         return len;\r
28                 }\r
29                 \r
30                 public function getType():uint\r
31                 {\r
32                         return type;\r
33                 }\r
34                 \r
35                 override public function toString(radix:Number=0):String {\r
36                         return DER.indent+"Integer["+type+"]["+len+"]["+super.toString(16)+"]";\r
37                 }\r
38                 \r
39                 public function toDER():ByteArray {\r
40                         return null;\r
41                 }\r
42                 \r
43         }\r
44 }