Package org.conscrypt
Class ServerHandshakeImpl
java.lang.Object
org.conscrypt.HandshakeProtocol
org.conscrypt.ServerHandshakeImpl
public class ServerHandshakeImpl extends HandshakeProtocol
Server side handshake protocol implementation.
Handshake protocol operates on top of the Record Protocol.
It responsible for negotiating a session.
The implementation processes inbound client handshake messages,
creates and sends respond messages. Outbound messages are supplied
to Record Protocol. Detected errors are reported to the Alert protocol.
- See Also:
- TLS 1.0 spec., 7.4. Handshake protocol.
-
Field Summary
Fields inherited from class org.conscrypt.HandshakeProtocol
certificateRequest, certificateVerify, changeCipherSpecReceived, clientCert, clientFinished, clientHello, clientKeyExchange, delegatedTaskErr, delegatedTasks, engineOwner, FINISHED, io_stream, isResuming, NEED_TASK, NEED_UNWRAP, needSendHelloRequest, nonBlocking, NOT_HANDSHAKING, parameters, preMasterSecret, recordProtocol, serverCert, serverFinished, serverHello, serverHelloDone, serverKeyExchange, session, socketOwner, status -
Constructor Summary
Constructors Constructor Description ServerHandshakeImpl(Object owner)Creates Server Handshake Implementation -
Method Summary
Modifier and Type Method Description protected voidmakeFinished()Creates and sends finished messagevoidreceiveChangeCipherSpec()Processes inbound ChangeCipherSpec messagevoidstart()Start session negotiationvoidunwrap(byte[] bytes)Proceses inbound handshake messagesvoidunwrapSSLv2(byte[] bytes)Processes SSLv2 Hello messageMethods inherited from class org.conscrypt.HandshakeProtocol
clearMessages, computerMasterSecret, computerReferenceVerifyDataSSLv3, computerReferenceVerifyDataTLS, computerVerifyDataSSLv3, computerVerifyDataTLS, fatalAlert, fatalAlert, fatalAlert, getRSAKeyLength, getSession, getStatus, getTask, send, sendChangeCipherSpec, sendHelloRequest, sendWarningAlert, setRecordProtocol, shutdown, stop, unexpectedMessage, verifyFinished, wrap
-
Constructor Details
-
ServerHandshakeImpl
Creates Server Handshake Implementation- Parameters:
owner-
-
-
Method Details
-
start
public void start()Start session negotiation- Specified by:
startin classHandshakeProtocol
-
unwrap
public void unwrap(byte[] bytes)Proceses inbound handshake messages- Specified by:
unwrapin classHandshakeProtocol- Parameters:
bytes-
-
unwrapSSLv2
public void unwrapSSLv2(byte[] bytes)Processes SSLv2 Hello message- Specified by:
unwrapSSLv2in classHandshakeProtocol- Parameters:
bytes-
-
makeFinished
protected void makeFinished()Creates and sends finished message -
receiveChangeCipherSpec
public void receiveChangeCipherSpec()Processes inbound ChangeCipherSpec message
-