2 * ISecurityParameters
\r
4 * This class encapsulates all the security parameters that get negotiated
\r
5 * during the TLS handshake. It also holds all the key derivation methods.
\r
6 * Copyright (c) 2007 Henri Torgemane
\r
8 * See LICENSE.txt for full license information.
\r
10 package com.hurlant.crypto.tls {
\r
11 import flash.utils.ByteArray;
\r
13 public interface ISecurityParameters {
\r
14 function get version() : uint;
\r
15 function reset():void;
\r
16 function getBulkCipher():uint;
\r
17 function getCipherType():uint;
\r
18 function getMacAlgorithm():uint;
\r
19 function setCipher(cipher:uint):void;
\r
20 function setCompression(algo:uint):void;
\r
21 function setPreMasterSecret(secret:ByteArray):void;
\r
22 function setClientRandom(secret:ByteArray):void;
\r
23 function setServerRandom(secret:ByteArray):void;
\r
24 function get useRSA():Boolean;
\r
25 function computeVerifyData(side:uint, handshakeMessages:ByteArray):ByteArray;
\r
26 function computeCertificateVerify( side:uint, handshakeRecords:ByteArray):ByteArray;
\r
27 function getConnectionStates():Object;
\r