/js/lib/Socket.IO-node/support/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/util/der/Integer.as
ActionScript | 44 lines | 29 code | 7 blank | 8 comment | 0 complexity | 562e97ddb59bf67515b13e9cd8267397 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, MPL-2.0-no-copyleft-exception, BSD-3-Clause
- /**
- * Integer
- *
- * An ASN1 type for an Integer, represented with a BigInteger
- * Copyright (c) 2007 Henri Torgemane
- *
- * See LICENSE.txt for full license information.
- */
- package com.hurlant.util.der
- {
- import com.hurlant.math.BigInteger;
- import flash.utils.ByteArray;
- public class Integer extends BigInteger implements IAsn1Type
- {
- private var type:uint;
- private var len:uint;
-
- public function Integer(type:uint, length:uint, b:ByteArray) {
- this.type = type;
- this.len = length;
- super(b);
- }
-
- public function getLength():uint
- {
- return len;
- }
-
- public function getType():uint
- {
- return type;
- }
-
- override public function toString(radix:Number=0):String {
- return DER.indent+"Integer["+type+"]["+len+"]["+super.toString(16)+"]";
- }
-
- public function toDER():ByteArray {
- return null;
- }
-
- }
- }