Bouncy Castle Cryptography Library 1.49

org.bouncycastle.crypto.tls
Class SRPTlsClient

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

public abstract class SRPTlsClient
extends AbstractTlsClient


Field Summary
static java.lang.Integer EXT_SRP
           
protected  byte[] identity
           
protected  byte[] password
           
 
Fields inherited from class org.bouncycastle.crypto.tls.AbstractTlsClient
cipherFactory, context, selectedCipherSuite, selectedCompressionMethod, supportedSignatureAlgorithms
 
Constructor Summary
SRPTlsClient(byte[] identity, byte[] password)
           
SRPTlsClient(TlsCipherFactory cipherFactory, byte[] identity, byte[] password)
           
 
Method Summary
protected  TlsKeyExchange createSRPKeyExchange(int keyExchange)
           
 TlsCipher getCipher()
           
 int[] getCipherSuites()
           
 java.util.Hashtable getClientExtensions()
           
 TlsKeyExchange getKeyExchange()
           
 void processServerExtensions(java.util.Hashtable serverExtensions)
           
 
Methods inherited from class org.bouncycastle.crypto.tls.AbstractTlsClient
getClientHelloRecordLayerVersion, getClientSupplementalData, getClientVersion, getCompression, getCompressionMethods, getMinimumVersion, init, notifyHandshakeComplete, notifyNewSessionTicket, notifySecureRenegotiation, notifySelectedCipherSuite, notifySelectedCompressionMethod, notifyServerVersion, notifySessionID, 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

EXT_SRP

public static final java.lang.Integer EXT_SRP

identity

protected byte[] identity

password

protected byte[] password
Constructor Detail

SRPTlsClient

public SRPTlsClient(byte[] identity,
                    byte[] password)

SRPTlsClient

public SRPTlsClient(TlsCipherFactory cipherFactory,
                    byte[] identity,
                    byte[] password)
Method Detail

getCipherSuites

public int[] getCipherSuites()

getClientExtensions

public java.util.Hashtable getClientExtensions()
                                        throws java.io.IOException
Specified by:
getClientExtensions in interface TlsClient
Overrides:
getClientExtensions in class AbstractTlsClient
Throws:
java.io.IOException

processServerExtensions

public void processServerExtensions(java.util.Hashtable serverExtensions)
                             throws java.io.IOException
Specified by:
processServerExtensions in interface TlsClient
Overrides:
processServerExtensions in class AbstractTlsClient
Throws:
java.io.IOException

getKeyExchange

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

getCipher

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

createSRPKeyExchange

protected TlsKeyExchange createSRPKeyExchange(int keyExchange)

Bouncy Castle Cryptography Library 1.49