java.lang .Object org.apache.harmony.xnet.provider.jsse .HandshakeProtocol All known Subclasses: org.apache.harmony.xnet.provider.jsse .ClientHandshakeImpl , org.apache.harmony.xnet.provider.jsse .ServerHandshakeImpl ,HandshakeProtocol abstract public class HandshakeProtocol (Code) Base class for ClientHandshakeImpl and ServerHandshakeImpl classes.
See Also: TLSSee Also: 1.0 spec., 7.4. Handshake protocolSee Also: (http://www.ietf.org/rfc/rfc2246.txt)
FINISHED final public static int FINISHED (Code) Handshake status FINISHED - HandshakeProtocol has just finished
NEED_TASK final public static int NEED_TASK (Code) Handshake status NEED_TASK - HandshakeProtocol needs the results of delegated task
NEED_UNWRAP final public static int NEED_UNWRAP (Code) Handshake status NEED_UNWRAP - HandshakeProtocol needs to receive data
NOT_HANDSHAKING final public static int NOT_HANDSHAKING (Code) Handshake status NOT_HANDSHAKING - is not currently handshaking
changeCipherSpecReceived protected boolean changeCipherSpecReceived(Code) Indicates that change cipher spec message has been received
clientHello protected ClientHello clientHello(Code) Sended and received handshake messages
delegatedTaskErr protected Exception delegatedTaskErr(Code) Exception occured in delegated task
delegatedTasks protected Vector delegatedTasks(Code) Delegated tasks for this handshake implementation
isResuming protected boolean isResuming(Code) Indicates previous session resuming
needSendHelloRequest protected boolean needSendHelloRequest(Code)
nonBlocking protected boolean nonBlocking(Code) Indicates non-blocking handshake
parameters protected SSLParameters parameters(Code) SSLParameters suplied by SSLSocket or SSLEngine
preMasterSecret protected byte[] preMasterSecret(Code) Premaster secret
status protected int status(Code) Current handshake status
HandshakeProtocol protected HandshakeProtocol(Object owner)(Code) Creates HandshakeProtocol instance
Parameters: owner -
clearMessages protected void clearMessages()(Code) Clears previously sended and received handshake messages
computerMasterSecret public void computerMasterSecret()(Code) Computers master secret
computerReferenceVerifyDataSSLv3 protected void computerReferenceVerifyDataSSLv3(byte[] sender)(Code) Computer reference SSLv3 verify_data that is used to verify finished message
See Also: SSLv3See Also: spec. 7.6.9. FinishedParameters: label -
computerReferenceVerifyDataTLS protected void computerReferenceVerifyDataTLS(String label)(Code) Computers reference TLS verify_data that is used to verify finished message
See Also: TLSSee Also: spec. 7.4.9. FinishedParameters: label -
computerVerifyDataSSLv3 protected void computerVerifyDataSSLv3(byte[] sender, byte[] buf)(Code) Computer SSLv3 verify_data
See Also: SSLv3See Also: spec. 7.6.9. FinishedParameters: label - Parameters: buf -
computerVerifyDataTLS protected void computerVerifyDataTLS(String label, byte[] buf)(Code) Computer TLS verify_data
See Also: TLSSee Also: spec. 7.4.9. FinishedParameters: label - Parameters: buf -
fatalAlert protected void fatalAlert(byte description, String reason)(Code) Sends fatal alert, breaks execution
Parameters: description - Parameters: reason -
fatalAlert protected void fatalAlert(byte description, String reason, Exception cause)(Code) Sends fatal alert, breaks execution
Parameters: description - Parameters: reason - Parameters: cause -
fatalAlert protected void fatalAlert(byte description, SSLException cause)(Code) Sends fatal alert, breaks execution
Parameters: description - Parameters: cause -
getTask public Runnable getTask()(Code) Returns a delegated task.
Delegated task or null
makeFinished abstract void makeFinished()(Code) Creates and sends finished message
receiveChangeCipherSpec abstract void receiveChangeCipherSpec()(Code) Proceses inbound ChangeCipherSpec message
send public void send(Message message)(Code) Writes message to HandshakeIODataStream
Parameters: message -
sendChangeCipherSpec protected void sendChangeCipherSpec()(Code)
sendHelloRequest protected void sendHelloRequest()(Code)
sendWarningAlert protected void sendWarningAlert(byte description)(Code) Sends fatal alert, breaks execution
Parameters: description -
setRecordProtocol public void setRecordProtocol(SSLRecordProtocol recordProtocol)(Code) Sets SSL Record Protocol
Parameters: recordProtocol -
shutdown protected void shutdown()(Code) Shutdownes the protocol. It will be impossiblke to use the instance
after the calling of this method.
start abstract public void start()(Code) Start session negotiation
Parameters: session -
stop protected void stop()(Code) Stops the current session renegotiation process.
Such functionality is needed when it is session renegotiation
process and no_renegotiation alert message is received
from another peer.
Parameters: session -
unexpectedMessage protected void unexpectedMessage()(Code) Sends fatal alert "UNEXPECTED MESSAGE"
unwrap abstract public void unwrap(byte[] bytes)(Code) Proceses inbound handshake messages
Parameters: bytes -
unwrapSSLv2 abstract public void unwrapSSLv2(byte[] bytes)(Code) Processes SSLv2 Hello message
Parameters: bytes -
verifyFinished protected void verifyFinished(byte[] data)(Code) Verifies finished data
Parameters: data - Parameters: isServer -
wrap public byte[] wrap()(Code) Proceses outbound handshake messages