public abstract class

SRPTlsClient

extends Object
implements TlsClient
java.lang.Object
   ↳ org.bouncycastle.crypto.tls.SRPTlsClient

Summary

Fields
public static final Integer EXT_SRP
protected TlsCipherFactory cipherFactory
protected TlsClientContext context
protected byte[] identity
protected byte[] password
protected int selectedCipherSuite
protected int selectedCompressionMethod
Public Constructors
SRPTlsClient(byte[] identity, byte[] password)
SRPTlsClient(TlsCipherFactory cipherFactory, byte[] identity, byte[] password)
Public Methods
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)
Protected Methods
TlsKeyExchange createSRPKeyExchange(int keyExchange)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.bouncycastle.crypto.tls.TlsClient

Fields

public static final Integer EXT_SRP

protected TlsCipherFactory cipherFactory

protected TlsClientContext context

protected byte[] identity

protected byte[] password

protected int selectedCipherSuite

protected int selectedCompressionMethod

Public Constructors

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

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

Public Methods

public TlsCipher getCipher ()

Throws
IOException

public int[] getCipherSuites ()

public Hashtable getClientExtensions ()

Throws
IOException

public TlsCompression getCompression ()

Throws
IOException

public short[] getCompressionMethods ()

public TlsKeyExchange getKeyExchange ()

Throws
IOException

public void init (TlsClientContext context)

public void notifySecureRenegotiation (boolean secureRenegotiation)

Throws
IOException

public void notifySelectedCipherSuite (int selectedCipherSuite)

public void notifySelectedCompressionMethod (short selectedCompressionMethod)

public void notifySessionID (byte[] sessionID)

public void processServerExtensions (Hashtable serverExtensions)

Protected Methods

protected TlsKeyExchange createSRPKeyExchange (int keyExchange)