public class TlsServerProtocol extends TlsProtocol
Modifier and Type | Field and Description |
---|---|
protected CertificateRequest |
certificateRequest |
protected short |
clientCertificateType |
protected TlsKeyExchange |
keyExchange |
protected TlsHandshakeHash |
prepareFinishHash |
protected TlsCredentials |
serverCredentials |
protected TlsServer |
tlsServer |
allowCertificateStatus, clientExtensions, connection_state, CS_CERTIFICATE_REQUEST, CS_CERTIFICATE_STATUS, CS_CERTIFICATE_VERIFY, CS_CLIENT_CERTIFICATE, CS_CLIENT_FINISHED, CS_CLIENT_HELLO, CS_CLIENT_KEY_EXCHANGE, CS_CLIENT_SUPPLEMENTAL_DATA, CS_END, CS_SERVER_CERTIFICATE, CS_SERVER_FINISHED, CS_SERVER_HELLO, CS_SERVER_HELLO_DONE, CS_SERVER_KEY_EXCHANGE, CS_SERVER_SESSION_TICKET, CS_SERVER_SUPPLEMENTAL_DATA, CS_START, expectSessionTicket, EXT_RenegotiationInfo, EXT_SessionTicket, offeredCipherSuites, offeredCompressionMethods, peerCertificate, receivedChangeCipherSpec, resumedSession, secure_renegotiation, secureRandom, securityParameters, serverExtensions, sessionParameters, tlsSession
Constructor and Description |
---|
TlsServerProtocol(InputStream input,
OutputStream output,
SecureRandom secureRandom) |
applicationDataAvailable, assertEmpty, close, completeHandshake, createRandomBlock, createRenegotiationInfo, createVerifyData, establishMasterSecret, failWithError, flush, getCurrentPRFHash, getInputStream, getOutputStream, getPRFAlgorithm, handleChangeCipherSpecMessage, handleClose, invalidateSession, isClosed, processFinishedMessage, processMaxFragmentLengthExtension, processRecord, raiseAlert, raiseWarning, readApplicationData, readExtensions, readSupplementalDataMessage, safeReadRecord, safeWriteRecord, sendCertificateMessage, sendChangeCipherSpecMessage, sendFinishedMessage, sendSupplementalDataMessage, writeData, writeExtensions, writeHandshakeMessage, writeSupplementalData
protected TlsServer tlsServer
protected TlsKeyExchange keyExchange
protected TlsCredentials serverCredentials
protected CertificateRequest certificateRequest
protected short clientCertificateType
protected TlsHandshakeHash prepareFinishHash
public TlsServerProtocol(InputStream input, OutputStream output, SecureRandom secureRandom)
public void accept(TlsServer tlsServer) throws IOException
tlsServer
- IOException
- If handshake was not successful.protected void cleanupHandshake()
cleanupHandshake
in class TlsProtocol
protected TlsContext getContext()
getContext
in class TlsProtocol
protected TlsPeer getPeer()
getPeer
in class TlsProtocol
protected void handleHandshakeMessage(short type, byte[] data) throws IOException
handleHandshakeMessage
in class TlsProtocol
IOException
protected void handleWarningMessage(short description) throws IOException
handleWarningMessage
in class TlsProtocol
IOException
protected void notifyClientCertificate(Certificate clientCertificate) throws IOException
IOException
protected void receiveCertificateMessage(ByteArrayInputStream buf) throws IOException
IOException
protected void receiveCertificateVerifyMessage(ByteArrayInputStream buf) throws IOException
IOException
protected void receiveClientHelloMessage(ByteArrayInputStream buf) throws IOException
IOException
protected void receiveClientKeyExchangeMessage(ByteArrayInputStream buf) throws IOException
IOException
protected void sendCertificateRequestMessage(CertificateRequest certificateRequest) throws IOException
IOException
protected void sendCertificateStatusMessage(CertificateStatus certificateStatus) throws IOException
IOException
protected void sendNewSessionTicketMessage(NewSessionTicket newSessionTicket) throws IOException
IOException
protected void sendServerHelloMessage() throws IOException
IOException
protected void sendServerHelloDoneMessage() throws IOException
IOException
protected void sendServerKeyExchangeMessage(byte[] serverKeyExchange) throws IOException
IOException
protected boolean expectCertificateVerifyMessage()
Copyright © 2016 BouncyCastle.org. All rights reserved.