class TlsSRPKeyExchange extends java.lang.Object implements TlsKeyExchange
Modifier and Type | Field and Description |
---|---|
protected java.math.BigInteger |
B |
protected TlsClientContext |
context |
protected byte[] |
identity |
protected int |
keyExchange |
protected byte[] |
password |
protected byte[] |
s |
protected AsymmetricKeyParameter |
serverPublicKey |
protected SRP6Client |
srpClient |
protected TlsSigner |
tlsSigner |
Constructor and Description |
---|
TlsSRPKeyExchange(TlsClientContext context,
int keyExchange,
byte[] identity,
byte[] password) |
Modifier and Type | Method and Description |
---|---|
void |
generateClientKeyExchange(java.io.OutputStream os) |
byte[] |
generatePremasterSecret() |
protected Signer |
initSigner(TlsSigner tlsSigner,
SecurityParameters securityParameters) |
void |
processClientCredentials(TlsCredentials clientCredentials) |
void |
processServerCertificate(Certificate serverCertificate) |
void |
processServerKeyExchange(java.io.InputStream is) |
void |
skipClientCredentials() |
void |
skipServerCertificate() |
void |
skipServerKeyExchange() |
void |
validateCertificateRequest(CertificateRequest certificateRequest) |
protected TlsClientContext context
protected int keyExchange
protected TlsSigner tlsSigner
protected byte[] identity
protected byte[] password
protected AsymmetricKeyParameter serverPublicKey
protected byte[] s
protected java.math.BigInteger B
protected SRP6Client srpClient
TlsSRPKeyExchange(TlsClientContext context, int keyExchange, byte[] identity, byte[] password)
public void skipServerCertificate() throws java.io.IOException
skipServerCertificate
in interface TlsKeyExchange
java.io.IOException
public void processServerCertificate(Certificate serverCertificate) throws java.io.IOException
processServerCertificate
in interface TlsKeyExchange
java.io.IOException
public void skipServerKeyExchange() throws java.io.IOException
skipServerKeyExchange
in interface TlsKeyExchange
java.io.IOException
public void processServerKeyExchange(java.io.InputStream is) throws java.io.IOException
processServerKeyExchange
in interface TlsKeyExchange
java.io.IOException
public void validateCertificateRequest(CertificateRequest certificateRequest) throws java.io.IOException
validateCertificateRequest
in interface TlsKeyExchange
java.io.IOException
public void skipClientCredentials() throws java.io.IOException
skipClientCredentials
in interface TlsKeyExchange
java.io.IOException
public void processClientCredentials(TlsCredentials clientCredentials) throws java.io.IOException
processClientCredentials
in interface TlsKeyExchange
java.io.IOException
public void generateClientKeyExchange(java.io.OutputStream os) throws java.io.IOException
generateClientKeyExchange
in interface TlsKeyExchange
java.io.IOException
public byte[] generatePremasterSecret() throws java.io.IOException
generatePremasterSecret
in interface TlsKeyExchange
java.io.IOException
protected Signer initSigner(TlsSigner tlsSigner, SecurityParameters securityParameters)