summaryrefslogtreecommitdiff
path: root/flash-src/third-party/com/hurlant/util/der/PrintableString.as
diff options
context:
space:
mode:
authorHiroshi Ichikawa <gimite@gmail.com>2011-08-28 22:14:15 +0900
committerHiroshi Ichikawa <gimite@gmail.com>2011-08-28 22:14:15 +0900
commit80c91d84bc3e84f684f53172e8eb7cad81795fb1 (patch)
tree70d3a71d8020902ed246fc7b908ebf9c3478f653 /flash-src/third-party/com/hurlant/util/der/PrintableString.as
parented0622a890de811eb6d766d5c5a9a62d726f0593 (diff)
downloadweb-socket-js-80c91d84bc3e84f684f53172e8eb7cad81795fb1.tar.gz
Moving our own .as files into flash-src/src and third-party .as files into flash-src/third-party.
Adding build rule for WebSocketWithoutDependencies.swc.
Diffstat (limited to 'flash-src/third-party/com/hurlant/util/der/PrintableString.as')
-rwxr-xr-xflash-src/third-party/com/hurlant/util/der/PrintableString.as49
1 files changed, 49 insertions, 0 deletions
diff --git a/flash-src/third-party/com/hurlant/util/der/PrintableString.as b/flash-src/third-party/com/hurlant/util/der/PrintableString.as
new file mode 100755
index 0000000..ed1775e
--- /dev/null
+++ b/flash-src/third-party/com/hurlant/util/der/PrintableString.as
@@ -0,0 +1,49 @@
+/**
+ * PrintableString
+ *
+ * An ASN1 type for a PrintableString, held within a String
+ * Copyright (c) 2007 Henri Torgemane
+ *
+ * See LICENSE.txt for full license information.
+ */
+package com.hurlant.util.der
+{
+ import flash.utils.ByteArray;
+
+ public class PrintableString implements IAsn1Type
+ {
+ protected var type:uint;
+ protected var len:uint;
+ protected var str:String;
+
+ public function PrintableString(type:uint, length:uint) {
+ this.type = type;
+ this.len = length;
+ }
+
+ public function getLength():uint
+ {
+ return len;
+ }
+
+ public function getType():uint
+ {
+ return type;
+ }
+
+ public function setString(s:String):void {
+ str = s;
+ }
+ public function getString():String {
+ return str;
+ }
+
+ public function toString():String {
+ return DER.indent+str;
+ }
+
+ public function toDER():ByteArray {
+ return null; // XXX not implemented
+ }
+ }
+} \ No newline at end of file