public abstract class DefaultTlsClient extends Object implements TlsClient
| Modifier and Type | Field and Description |
|---|---|
protected TlsCipherFactory |
cipherFactory |
protected TlsClientContext |
context |
protected int |
selectedCipherSuite |
protected int |
selectedCompressionMethod |
| Constructor and Description |
|---|
DefaultTlsClient() |
DefaultTlsClient(TlsCipherFactory cipherFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected TlsKeyExchange |
createDHEKeyExchange(int keyExchange) |
protected TlsKeyExchange |
createDHKeyExchange(int keyExchange) |
protected TlsKeyExchange |
createECDHEKeyExchange(int keyExchange) |
protected TlsKeyExchange |
createECDHKeyExchange(int keyExchange) |
protected TlsKeyExchange |
createRSAKeyExchange() |
TlsCipher |
getCipher() |
int[] |
getCipherSuites() |
Hashtable |
getClientExtensions() |
TlsCompression |
getCompression() |
short[] |
getCompressionMethods() |
TlsKeyExchange |
getKeyExchange() |
void |
init(TlsClientContext context) |
void |
notifySecureRenegotiation(boolean secureRenegotiation) |
void |
notifySelectedCipherSuite(int selectedCipherSuite) |
void |
notifySelectedCompressionMethod(short selectedCompressionMethod) |
void |
notifySessionID(byte[] sessionID) |
void |
processServerExtensions(Hashtable serverExtensions) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAuthenticationprotected TlsCipherFactory cipherFactory
protected TlsClientContext context
protected int selectedCipherSuite
protected int selectedCompressionMethod
public DefaultTlsClient()
public DefaultTlsClient(TlsCipherFactory cipherFactory)
public void init(TlsClientContext context)
public int[] getCipherSuites()
getCipherSuites in interface TlsClientpublic Hashtable getClientExtensions()
getClientExtensions in interface TlsClientpublic short[] getCompressionMethods()
getCompressionMethods in interface TlsClientpublic void notifySessionID(byte[] sessionID)
notifySessionID in interface TlsClientpublic void notifySelectedCipherSuite(int selectedCipherSuite)
notifySelectedCipherSuite in interface TlsClientpublic void notifySelectedCompressionMethod(short selectedCompressionMethod)
notifySelectedCompressionMethod in interface TlsClientpublic void notifySecureRenegotiation(boolean secureRenegotiation)
throws IOException
notifySecureRenegotiation in interface TlsClientIOExceptionpublic void processServerExtensions(Hashtable serverExtensions)
processServerExtensions in interface TlsClientpublic TlsKeyExchange getKeyExchange() throws IOException
getKeyExchange in interface TlsClientIOExceptionpublic TlsCompression getCompression() throws IOException
getCompression in interface TlsClientIOExceptionpublic TlsCipher getCipher() throws IOException
getCipher in interface TlsClientIOExceptionprotected TlsKeyExchange createDHKeyExchange(int keyExchange)
protected TlsKeyExchange createDHEKeyExchange(int keyExchange)
protected TlsKeyExchange createECDHKeyExchange(int keyExchange)
protected TlsKeyExchange createECDHEKeyExchange(int keyExchange)
protected TlsKeyExchange createRSAKeyExchange()
Copyright © 2015. All rights reserved.