/js/lib/Socket.IO-node/support/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/crypto/tls/ISecurityParameters.as
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
- /**
- * ISecurityParameters
- *
- * This class encapsulates all the security parameters that get negotiated
- * during the TLS handshake. It also holds all the key derivation methods.
- * Copyright (c) 2007 Henri Torgemane
- *
- * See LICENSE.txt for full license information.
- */
- package com.hurlant.crypto.tls {
- import flash.utils.ByteArray;
-
- public interface ISecurityParameters {
- function get version() : uint;
- function reset():void;
- function getBulkCipher():uint;
- function getCipherType():uint;
- function getMacAlgorithm():uint;
- function setCipher(cipher:uint):void;
- function setCompression(algo:uint):void;
- function setPreMasterSecret(secret:ByteArray):void;
- function setClientRandom(secret:ByteArray):void;
- function setServerRandom(secret:ByteArray):void;
- function get useRSA():Boolean;
- function computeVerifyData(side:uint, handshakeMessages:ByteArray):ByteArray;
- function computeCertificateVerify( side:uint, handshakeRecords:ByteArray):ByteArray;
- function getConnectionStates():Object;
- }
- }