Bouncy Castle Cryptography Library 1.49

org.bouncycastle.crypto.tls
Class AbstractTlsKeyExchange

java.lang.Object
  extended by org.bouncycastle.crypto.tls.AbstractTlsKeyExchange
All Implemented Interfaces:
TlsKeyExchange
Direct Known Subclasses:
TlsDHKeyExchange, TlsECDHKeyExchange, TlsPSKKeyExchange, TlsRSAKeyExchange, TlsSRPKeyExchange

public abstract class AbstractTlsKeyExchange
extends java.lang.Object
implements TlsKeyExchange


Field Summary
protected  TlsContext context
           
protected  int keyExchange
           
protected  java.util.Vector supportedSignatureAlgorithms
           
 
Constructor Summary
protected AbstractTlsKeyExchange(int keyExchange, java.util.Vector supportedSignatureAlgorithms)
           
 
Method Summary
 byte[] generateServerKeyExchange()
           
 void init(TlsContext context)
           
 void processClientCertificate(Certificate clientCertificate)
           
 void processClientKeyExchange(java.io.InputStream input)
           
 void processServerCertificate(Certificate serverCertificate)
           
 void processServerCredentials(TlsCredentials serverCredentials)
           
 void processServerKeyExchange(java.io.InputStream input)
           
 boolean requiresServerKeyExchange()
           
 void skipClientCredentials()
           
 void skipServerKeyExchange()
           
 
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.TlsKeyExchange
generateClientKeyExchange, generatePremasterSecret, processClientCredentials, skipServerCredentials, validateCertificateRequest
 

Field Detail

keyExchange

protected int keyExchange

supportedSignatureAlgorithms

protected java.util.Vector supportedSignatureAlgorithms

context

protected TlsContext context
Constructor Detail

AbstractTlsKeyExchange

protected AbstractTlsKeyExchange(int keyExchange,
                                 java.util.Vector supportedSignatureAlgorithms)
Method Detail

init

public void init(TlsContext context)
Specified by:
init in interface TlsKeyExchange

processServerCertificate

public void processServerCertificate(Certificate serverCertificate)
                              throws java.io.IOException
Specified by:
processServerCertificate in interface TlsKeyExchange
Throws:
java.io.IOException

processServerCredentials

public void processServerCredentials(TlsCredentials serverCredentials)
                              throws java.io.IOException
Specified by:
processServerCredentials in interface TlsKeyExchange
Throws:
java.io.IOException

requiresServerKeyExchange

public boolean requiresServerKeyExchange()
Specified by:
requiresServerKeyExchange in interface TlsKeyExchange

generateServerKeyExchange

public byte[] generateServerKeyExchange()
                                 throws java.io.IOException
Specified by:
generateServerKeyExchange in interface TlsKeyExchange
Throws:
java.io.IOException

skipServerKeyExchange

public void skipServerKeyExchange()
                           throws java.io.IOException
Specified by:
skipServerKeyExchange in interface TlsKeyExchange
Throws:
java.io.IOException

processServerKeyExchange

public void processServerKeyExchange(java.io.InputStream input)
                              throws java.io.IOException
Specified by:
processServerKeyExchange in interface TlsKeyExchange
Throws:
java.io.IOException

skipClientCredentials

public void skipClientCredentials()
                           throws java.io.IOException
Specified by:
skipClientCredentials in interface TlsKeyExchange
Throws:
java.io.IOException

processClientCertificate

public void processClientCertificate(Certificate clientCertificate)
                              throws java.io.IOException
Specified by:
processClientCertificate in interface TlsKeyExchange
Throws:
java.io.IOException

processClientKeyExchange

public void processClientKeyExchange(java.io.InputStream input)
                              throws java.io.IOException
Specified by:
processClientKeyExchange in interface TlsKeyExchange
Throws:
java.io.IOException

Bouncy Castle Cryptography Library 1.49