Modifier and Type | Field and Description |
---|---|
protected TlsCipherFactory |
cipherFactory |
protected TlsClientContext |
context |
protected TlsPSKIdentity |
pskIdentity |
protected int |
selectedCipherSuite |
protected int |
selectedCompressionMethod |
Constructor and Description |
---|
PSKTlsClient(TlsCipherFactory cipherFactory,
TlsPSKIdentity pskIdentity) |
PSKTlsClient(TlsPSKIdentity pskIdentity) |
Modifier and Type | Method and Description |
---|---|
protected TlsKeyExchange |
createPSKKeyExchange(int keyExchange) |
TlsAuthentication |
getAuthentication() |
TlsCipher |
getCipher() |
int[] |
getCipherSuites() |
java.util.Hashtable |
getClientExtensions() |
ProtocolVersion |
getClientVersion() |
TlsCompression |
getCompression() |
short[] |
getCompressionMethods() |
TlsKeyExchange |
getKeyExchange() |
void |
init(TlsClientContext context) |
void |
notifySecureRenegotiation(boolean secureRenegotiation) |
void |
notifySelectedCipherSuite(int selectedCipherSuite) |
void |
notifySelectedCompressionMethod(short selectedCompressionMethod) |
void |
notifyServerVersion(ProtocolVersion serverVersion) |
void |
notifySessionID(byte[] sessionID) |
void |
processServerExtensions(java.util.Hashtable serverExtensions) |
protected TlsCipherFactory cipherFactory
protected TlsPSKIdentity pskIdentity
protected TlsClientContext context
protected int selectedCompressionMethod
protected int selectedCipherSuite
public PSKTlsClient(TlsPSKIdentity pskIdentity)
public PSKTlsClient(TlsCipherFactory cipherFactory, TlsPSKIdentity pskIdentity)
public ProtocolVersion getClientVersion()
getClientVersion
in interface TlsClient
public void init(TlsClientContext context)
public int[] getCipherSuites()
getCipherSuites
in interface TlsClient
public java.util.Hashtable getClientExtensions() throws java.io.IOException
getClientExtensions
in interface TlsClient
java.io.IOException
public short[] getCompressionMethods()
getCompressionMethods
in interface TlsClient
public void notifyServerVersion(ProtocolVersion serverVersion) throws java.io.IOException
notifyServerVersion
in interface TlsClient
java.io.IOException
public void notifySessionID(byte[] sessionID)
notifySessionID
in interface TlsClient
public void notifySelectedCipherSuite(int selectedCipherSuite)
notifySelectedCipherSuite
in interface TlsClient
public void notifySelectedCompressionMethod(short selectedCompressionMethod)
notifySelectedCompressionMethod
in interface TlsClient
public void notifySecureRenegotiation(boolean secureRenegotiation) throws java.io.IOException
notifySecureRenegotiation
in interface TlsClient
java.io.IOException
public void processServerExtensions(java.util.Hashtable serverExtensions)
processServerExtensions
in interface TlsClient
public TlsKeyExchange getKeyExchange() throws java.io.IOException
getKeyExchange
in interface TlsClient
java.io.IOException
public TlsAuthentication getAuthentication() throws java.io.IOException
getAuthentication
in interface TlsClient
java.io.IOException
public TlsCompression getCompression() throws java.io.IOException
getCompression
in interface TlsClient
java.io.IOException
public TlsCipher getCipher() throws java.io.IOException
protected TlsKeyExchange createPSKKeyExchange(int keyExchange)