/flash-src/third-party/com/hurlant/util/der/Set.as

http://github.com/gimite/web-socket-js · ActionScript · 27 lines · 16 code · 3 blank · 8 comment · 0 complexity · 50436f8bcf98b6493c44c3e7bce85ead MD5 · raw file

  1. /**
  2. * Set
  3. *
  4. * An ASN1 type for an Set, that extends a Sequence
  5. * Copyright (c) 2007 Henri Torgemane
  6. *
  7. * See LICENSE.txt for full license information.
  8. */
  9. package com.hurlant.util.der
  10. {
  11. public dynamic class Set extends Sequence implements IAsn1Type
  12. {
  13. public function Set(type:uint = 0x31, length:uint = 0x00) {
  14. super(type, length);
  15. }
  16. public override function toString():String {
  17. var s:String = DER.indent;
  18. DER.indent += " ";
  19. var t:String = join("\n");
  20. DER.indent= s;
  21. return DER.indent+"Set["+type+"]["+len+"][\n"+t+"\n"+s+"]";
  22. }
  23. }
  24. }