|
Bouncy Castle Cryptography Library 1.64 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.crypto.tls.TlsProtocol
org.bouncycastle.crypto.tls.TlsClientProtocol
Field Summary | |
protected TlsAuthentication |
authentication
Deprecated. |
protected CertificateRequest |
certificateRequest
Deprecated. |
protected CertificateStatus |
certificateStatus
Deprecated. |
protected TlsKeyExchange |
keyExchange
Deprecated. |
protected byte[] |
selectedSessionID
Deprecated. |
protected TlsClient |
tlsClient
Deprecated. |
Constructor Summary | |
TlsClientProtocol(java.io.InputStream input,
java.io.OutputStream output,
java.security.SecureRandom secureRandom)
Deprecated. Constructor for blocking mode. |
|
TlsClientProtocol(java.security.SecureRandom secureRandom)
Deprecated. Constructor for non-blocking mode. |
Method Summary | |
protected void |
cleanupHandshake()
Deprecated. |
void |
connect(TlsClient tlsClient)
Deprecated. Initiates a TLS handshake in the role of client. |
protected TlsContext |
getContext()
Deprecated. |
protected TlsPeer |
getPeer()
Deprecated. |
protected void |
handleHandshakeMessage(short type,
java.io.ByteArrayInputStream buf)
Deprecated. |
protected void |
handleSupplementalData(java.util.Vector serverSupplementalData)
Deprecated. |
protected void |
receiveNewSessionTicketMessage(java.io.ByteArrayInputStream buf)
Deprecated. |
protected void |
receiveServerHelloMessage(java.io.ByteArrayInputStream buf)
Deprecated. |
protected void |
sendCertificateVerifyMessage(DigitallySigned certificateVerify)
Deprecated. |
protected void |
sendClientHelloMessage()
Deprecated. |
protected void |
sendClientKeyExchangeMessage()
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected TlsClient tlsClient
protected byte[] selectedSessionID
protected TlsKeyExchange keyExchange
protected TlsAuthentication authentication
protected CertificateStatus certificateStatus
protected CertificateRequest certificateRequest
Constructor Detail |
public TlsClientProtocol(java.io.InputStream input, java.io.OutputStream output, java.security.SecureRandom secureRandom)
input
- The stream of data from the serveroutput
- The stream of data to the serversecureRandom
- Random number generator for various cryptographic functionspublic TlsClientProtocol(java.security.SecureRandom secureRandom)
TlsProtocol.offerInput(byte[])
to provide the received ciphertext,
then use TlsProtocol.readInput(byte[], int, int)
to read the corresponding cleartext.
Similarly, when data needs to be sent, use TlsProtocol.offerOutput(byte[], int, int)
to provide
the cleartext, then use TlsProtocol.readOutput(byte[], int, int)
to get the corresponding
ciphertext.
secureRandom
- Random number generator for various cryptographic functionsMethod Detail |
public void connect(TlsClient tlsClient) throws java.io.IOException
TlsPeer.notifyHandshakeComplete()
to
receive a callback when the handshake is complete.
tlsClient
- The TlsClient
to use for the handshake.
java.io.IOException
- If in blocking mode and 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, java.io.ByteArrayInputStream buf) throws java.io.IOException
handleHandshakeMessage
in class TlsProtocol
java.io.IOException
protected void handleSupplementalData(java.util.Vector serverSupplementalData) throws java.io.IOException
java.io.IOException
protected void receiveNewSessionTicketMessage(java.io.ByteArrayInputStream buf) throws java.io.IOException
java.io.IOException
protected void receiveServerHelloMessage(java.io.ByteArrayInputStream buf) throws java.io.IOException
java.io.IOException
protected void sendCertificateVerifyMessage(DigitallySigned certificateVerify) throws java.io.IOException
java.io.IOException
protected void sendClientHelloMessage() throws java.io.IOException
java.io.IOException
protected void sendClientKeyExchangeMessage() throws java.io.IOException
java.io.IOException
|
Bouncy Castle Cryptography Library 1.64 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |