org.bouncycastle.crypto.tls
Class PSKTlsClient
java.lang.Object
org.bouncycastle.crypto.tls.PSKTlsClient
- All Implemented Interfaces:
- TlsClient
public class PSKTlsClient
- extends java.lang.Object
- implements TlsClient
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cipherFactory
protected TlsCipherFactory cipherFactory
pskIdentity
protected TlsPSKIdentity pskIdentity
context
protected TlsClientContext context
selectedCompressionMethod
protected int selectedCompressionMethod
selectedCipherSuite
protected int selectedCipherSuite
PSKTlsClient
public PSKTlsClient(TlsPSKIdentity pskIdentity)
PSKTlsClient
public PSKTlsClient(TlsCipherFactory cipherFactory,
TlsPSKIdentity pskIdentity)
getClientVersion
public ProtocolVersion getClientVersion()
- Specified by:
getClientVersion in interface TlsClient
init
public void init(TlsClientContext context)
- Specified by:
init in interface TlsClient
getCipherSuites
public int[] getCipherSuites()
- Specified by:
getCipherSuites in interface TlsClient
getClientExtensions
public java.util.Hashtable getClientExtensions()
throws java.io.IOException
- Specified by:
getClientExtensions in interface TlsClient
- Throws:
java.io.IOException
getCompressionMethods
public short[] getCompressionMethods()
- Specified by:
getCompressionMethods in interface TlsClient
notifyServerVersion
public void notifyServerVersion(ProtocolVersion serverVersion)
throws java.io.IOException
- Specified by:
notifyServerVersion in interface TlsClient
- Throws:
java.io.IOException
notifySessionID
public void notifySessionID(byte[] sessionID)
- Specified by:
notifySessionID in interface TlsClient
notifySelectedCipherSuite
public void notifySelectedCipherSuite(int selectedCipherSuite)
- Specified by:
notifySelectedCipherSuite in interface TlsClient
notifySelectedCompressionMethod
public void notifySelectedCompressionMethod(short selectedCompressionMethod)
- Specified by:
notifySelectedCompressionMethod in interface TlsClient
notifySecureRenegotiation
public void notifySecureRenegotiation(boolean secureRenegotiation)
throws java.io.IOException
- Specified by:
notifySecureRenegotiation in interface TlsClient
- Throws:
java.io.IOException
processServerExtensions
public void processServerExtensions(java.util.Hashtable serverExtensions)
- Specified by:
processServerExtensions in interface TlsClient
getKeyExchange
public TlsKeyExchange getKeyExchange()
throws java.io.IOException
- Specified by:
getKeyExchange in interface TlsClient
- Throws:
java.io.IOException
getAuthentication
public TlsAuthentication getAuthentication()
throws java.io.IOException
- Specified by:
getAuthentication in interface TlsClient
- Throws:
java.io.IOException
getCompression
public TlsCompression getCompression()
throws java.io.IOException
- Specified by:
getCompression in interface TlsClient
- Throws:
java.io.IOException
getCipher
public TlsCipher getCipher()
throws java.io.IOException
- Specified by:
getCipher in interface TlsClient
- Throws:
java.io.IOException
createPSKKeyExchange
protected TlsKeyExchange createPSKKeyExchange(int keyExchange)