~ubuntu-branches/ubuntu/vivid/emscripten/vivid-proposed

« back to all changes in this revision

Viewing changes to third_party/websockify/include/web-socket-js/src/flash-src/third-party/com/hurlant/util/der/PrintableString.as

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2014-01-19 14:12:40 UTC
  • mfrom: (4.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20140119141240-nfiw0p8033oitpfz
Tags: 1.9.0~20140119~7dc8c2f-1
* New snapshot release (Closes: #733714)
* Provide sources for javascript and flash. Done in orig-tar.sh
  Available in third_party/websockify/include/web-socket-js/src/
  (Closes: #735903)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * PrintableString
 
3
 * 
 
4
 * An ASN1 type for a PrintableString, held within a String
 
5
 * Copyright (c) 2007 Henri Torgemane
 
6
 * 
 
7
 * See LICENSE.txt for full license information.
 
8
 */
 
9
package com.hurlant.util.der
 
10
{
 
11
        import flash.utils.ByteArray;
 
12
        
 
13
        public class PrintableString implements IAsn1Type
 
14
        {
 
15
                protected var type:uint;
 
16
                protected var len:uint;
 
17
                protected var str:String;
 
18
                
 
19
                public function PrintableString(type:uint, length:uint) {
 
20
                        this.type = type;
 
21
                        this.len = length;
 
22
                }
 
23
                
 
24
                public function getLength():uint
 
25
                {
 
26
                        return len;
 
27
                }
 
28
                
 
29
                public function getType():uint
 
30
                {
 
31
                        return type;
 
32
                }
 
33
                
 
34
                public function setString(s:String):void {
 
35
                        str = s;
 
36
                }
 
37
                public function getString():String {
 
38
                        return str;
 
39
                }
 
40
                
 
41
                public function toString():String {
 
42
                        return DER.indent+str;
 
43
                }
 
44
                
 
45
                public function toDER():ByteArray {
 
46
                        return null; // XXX not implemented
 
47
                }
 
48
        }
 
49
}
 
 
b'\\ No newline at end of file'