Bouncy Castle Cryptography Library 1.49

org.bouncycastle.crypto.tls
Class DefaultTlsServer

java.lang.Object
  extended by org.bouncycastle.crypto.tls.AbstractTlsPeer
      extended by org.bouncycastle.crypto.tls.AbstractTlsServer
          extended by org.bouncycastle.crypto.tls.DefaultTlsServer
All Implemented Interfaces:
TlsPeer, TlsServer

public abstract class DefaultTlsServer
extends AbstractTlsServer


Field Summary
 
Fields inherited from class org.bouncycastle.crypto.tls.AbstractTlsServer
cipherFactory, clientECPointFormats, clientExtensions, clientVersion, context, eccCipherSuitesOffered, namedCurves, offeredCipherSuites, offeredCompressionMethods, selectedCipherSuite, selectedCompressionMethod, serverECPointFormats, serverExtensions, serverVersion, supportedSignatureAlgorithms
 
Constructor Summary
DefaultTlsServer()
           
DefaultTlsServer(TlsCipherFactory cipherFactory)
           
 
Method Summary
protected  TlsKeyExchange createDHEKeyExchange(int keyExchange)
           
protected  TlsKeyExchange createDHKeyExchange(int keyExchange)
           
protected  TlsKeyExchange createECDHEKeyExchange(int keyExchange)
           
protected  TlsKeyExchange createECDHKeyExchange(int keyExchange)
           
protected  TlsKeyExchange createRSAKeyExchange()
           
 TlsCipher getCipher()
           
protected  int[] getCipherSuites()
           
 TlsCredentials getCredentials()
           
protected  DHParameters getDHParameters()
           
 TlsKeyExchange getKeyExchange()
           
protected  TlsEncryptionCredentials getRSAEncryptionCredentials()
           
protected  TlsSignerCredentials getRSASignerCredentials()
           
 
Methods inherited from class org.bouncycastle.crypto.tls.AbstractTlsServer
getCertificateRequest, getCompression, getCompressionMethods, getMaximumVersion, getMinimumVersion, getNewSessionTicket, getSelectedCipherSuite, getSelectedCompressionMethod, getServerExtensions, getServerSupplementalData, getServerVersion, init, notifyClientCertificate, notifyClientVersion, notifyHandshakeComplete, notifyOfferedCipherSuites, notifyOfferedCompressionMethods, notifySecureRenegotiation, processClientExtensions, processClientSupplementalData, supportsClientECCCapabilities
 
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.TlsPeer
notifyAlertRaised, notifyAlertReceived
 

Constructor Detail

DefaultTlsServer

public DefaultTlsServer()

DefaultTlsServer

public DefaultTlsServer(TlsCipherFactory cipherFactory)
Method Detail

getRSAEncryptionCredentials

protected TlsEncryptionCredentials getRSAEncryptionCredentials()
                                                        throws java.io.IOException
Throws:
java.io.IOException

getRSASignerCredentials

protected TlsSignerCredentials getRSASignerCredentials()
                                                throws java.io.IOException
Throws:
java.io.IOException

getDHParameters

protected DHParameters getDHParameters()

getCipherSuites

protected int[] getCipherSuites()
Specified by:
getCipherSuites in class AbstractTlsServer

getCredentials

public TlsCredentials getCredentials()
                              throws java.io.IOException
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

createDHKeyExchange

protected TlsKeyExchange createDHKeyExchange(int keyExchange)

createDHEKeyExchange

protected TlsKeyExchange createDHEKeyExchange(int keyExchange)

createECDHKeyExchange

protected TlsKeyExchange createECDHKeyExchange(int keyExchange)

createECDHEKeyExchange

protected TlsKeyExchange createECDHEKeyExchange(int keyExchange)

createRSAKeyExchange

protected TlsKeyExchange createRSAKeyExchange()

Bouncy Castle Cryptography Library 1.49