PageRenderTime 36ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/js/lib/Socket.IO-node/support/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/crypto/tls/ISecurityParameters.as

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
ActionScript | 29 lines | 19 code | 1 blank | 9 comment | 0 complexity | b946325cb137abb7b39e9520a1c2c508 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, MPL-2.0-no-copyleft-exception, BSD-3-Clause
  1. /**
  2. * ISecurityParameters
  3. *
  4. * This class encapsulates all the security parameters that get negotiated
  5. * during the TLS handshake. It also holds all the key derivation methods.
  6. * Copyright (c) 2007 Henri Torgemane
  7. *
  8. * See LICENSE.txt for full license information.
  9. */
  10. package com.hurlant.crypto.tls {
  11. import flash.utils.ByteArray;
  12. public interface ISecurityParameters {
  13. function get version() : uint;
  14. function reset():void;
  15. function getBulkCipher():uint;
  16. function getCipherType():uint;
  17. function getMacAlgorithm():uint;
  18. function setCipher(cipher:uint):void;
  19. function setCompression(algo:uint):void;
  20. function setPreMasterSecret(secret:ByteArray):void;
  21. function setClientRandom(secret:ByteArray):void;
  22. function setServerRandom(secret:ByteArray):void;
  23. function get useRSA():Boolean;
  24. function computeVerifyData(side:uint, handshakeMessages:ByteArray):ByteArray;
  25. function computeCertificateVerify( side:uint, handshakeRecords:ByteArray):ByteArray;
  26. function getConnectionStates():Object;
  27. }
  28. }