class TlsRSAKeyExchange extends java.lang.Object implements TlsKeyExchange
Modifier and Type | Field and Description |
---|---|
protected TlsClientContext |
context |
protected byte[] |
premasterSecret |
protected RSAKeyParameters |
rsaServerPublicKey |
protected AsymmetricKeyParameter |
serverPublicKey |
Constructor and Description |
---|
TlsRSAKeyExchange(TlsClientContext context) |
Modifier and Type | Method and Description |
---|---|
void |
generateClientKeyExchange(java.io.OutputStream os) |
byte[] |
generatePremasterSecret() |
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 RSAKeyParameters |
validateRSAPublicKey(RSAKeyParameters key) |
protected TlsClientContext context
protected AsymmetricKeyParameter serverPublicKey
protected RSAKeyParameters rsaServerPublicKey
protected byte[] premasterSecret
TlsRSAKeyExchange(TlsClientContext context)
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 RSAKeyParameters validateRSAPublicKey(RSAKeyParameters key) throws java.io.IOException
java.io.IOException