예제 #1
0
 public TlsProtocol(SecureRandom secureRandom)
 {
     mBlocking     = false;
     mInputBuffers = new ByteQueueStream();
     mOutputBuffer = new ByteQueueStream();
     mRecordStream = new RecordStream(this, (Stream)(object)mInputBuffers, (Stream)(object)mOutputBuffer);
     mSecureRandom = secureRandom;
 }
예제 #2
0
 public TlsProtocol(SecureRandom secureRandom)
 {
     this.mApplicationDataQueue = new ByteQueue();
     this.mAlertQueue           = new ByteQueue(2);
     this.mHandshakeQueue       = new ByteQueue();
     this.mAppDataSplitEnabled  = true;
     this.mBlocking             = true;
     this.mBlocking             = false;
     this.mInputBuffers         = new ByteQueueStream();
     this.mOutputBuffer         = new ByteQueueStream();
     this.mRecordStream         = new RecordStream(this, this.mInputBuffers, this.mOutputBuffer);
     this.mSecureRandom         = secureRandom;
 }
예제 #3
0
 public TlsProtocol(SecureRandom secureRandom)
 {
     this.mBlocking = false;
     this.mInputBuffers = new ByteQueueStream();
     this.mOutputBuffer = new ByteQueueStream();
     this.mRecordStream = new RecordStream(this, mInputBuffers, mOutputBuffer);
     this.mSecureRandom = secureRandom;
 }