Bouncy Castle Cryptography Library 1.49

org.bouncycastle.crypto.tls
Class PSKTlsClient

java.lang.Object
  extended by org.bouncycastle.crypto.tls.AbstractTlsPeer
      extended by org.bouncycastle.crypto.tls.AbstractTlsClient
          extended by org.bouncycastle.crypto.tls.PSKTlsClient
All Implemented Interfaces:
TlsClient, TlsPeer

public abstract class PSKTlsClient
extends AbstractTlsClient


Field Summary
protected  TlsPSKIdentity pskIdentity
           
 
Fields inherited from class org.bouncycastle.crypto.tls.AbstractTlsClient
cipherFactory, context, selectedCipherSuite, selectedCompressionMethod, supportedSignatureAlgorithms
 
Constructor Summary
PSKTlsClient(TlsCipherFactory cipherFactory, TlsPSKIdentity pskIdentity)
           
PSKTlsClient(TlsPSKIdentity pskIdentity)
           
 
Method Summary
protected  TlsKeyExchange createPSKKeyExchange(int keyExchange)
           
 TlsCipher getCipher()
           
 int[] getCipherSuites()
           
 TlsKeyExchange getKeyExchange()
           
 
Methods inherited from class org.bouncycastle.crypto.tls.AbstractTlsClient
getClientExtensions, getClientHelloRecordLayerVersion, getClientSupplementalData, getClientVersion, getCompression, getCompressionMethods, getMinimumVersion, init, notifyHandshakeComplete, notifyNewSessionTicket, notifySecureRenegotiation, notifySelectedCipherSuite, notifySelectedCompressionMethod, notifyServerVersion, notifySessionID, processServerExtensions, processServerSupplementalData
 
Methods inherited from class org.bouncycastle.crypto.tls.AbstractTlsPeer
notifyAlertRaised, notifyAlertReceived
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.bouncycastle.crypto.tls.TlsClient
getAuthentication
 
Methods inherited from interface org.bouncycastle.crypto.tls.TlsPeer
notifyAlertRaised, notifyAlertReceived
 

Field Detail

pskIdentity

protected TlsPSKIdentity pskIdentity
Constructor Detail

PSKTlsClient

public PSKTlsClient(TlsPSKIdentity pskIdentity)

PSKTlsClient

public PSKTlsClient(TlsCipherFactory cipherFactory,
                    TlsPSKIdentity pskIdentity)
Method Detail

getCipherSuites

public int[] getCipherSuites()

getKeyExchange

public TlsKeyExchange getKeyExchange()
                              throws java.io.IOException
Throws:
java.io.IOException

getCipher

public TlsCipher getCipher()
                    throws java.io.IOException
Throws:
java.io.IOException

createPSKKeyExchange

protected TlsKeyExchange createPSKKeyExchange(int keyExchange)

Bouncy Castle Cryptography Library 1.49