Bouncy Castle Cryptography Library 1.46

org.bouncycastle.crypto.tls
Class DefaultTlsCipherFactory

java.lang.Object
  extended by org.bouncycastle.crypto.tls.DefaultTlsCipherFactory
All Implemented Interfaces:
TlsCipherFactory

public class DefaultTlsCipherFactory
extends java.lang.Object
implements TlsCipherFactory


Constructor Summary
DefaultTlsCipherFactory()
           
 
Method Summary
protected  BlockCipher createAESBlockCipher()
           
protected  TlsCipher createAESCipher(TlsClientContext context, int cipherKeySize, int digestAlgorithm)
           
 TlsCipher createCipher(TlsClientContext context, int encryptionAlgorithm, int digestAlgorithm)
          See enumeration classes EncryptionAlgorithm and DigestAlgorithm for appropriate argument values
protected  BlockCipher createDESedeBlockCipher()
           
protected  TlsCipher createDESedeCipher(TlsClientContext context, int cipherKeySize, int digestAlgorithm)
           
protected  Digest createDigest(int digestAlgorithm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTlsCipherFactory

public DefaultTlsCipherFactory()
Method Detail

createCipher

public TlsCipher createCipher(TlsClientContext context,
                              int encryptionAlgorithm,
                              int digestAlgorithm)
                       throws java.io.IOException
Description copied from interface: TlsCipherFactory
See enumeration classes EncryptionAlgorithm and DigestAlgorithm for appropriate argument values

Specified by:
createCipher in interface TlsCipherFactory
Throws:
java.io.IOException

createAESCipher

protected TlsCipher createAESCipher(TlsClientContext context,
                                    int cipherKeySize,
                                    int digestAlgorithm)
                             throws java.io.IOException
Throws:
java.io.IOException

createDESedeCipher

protected TlsCipher createDESedeCipher(TlsClientContext context,
                                       int cipherKeySize,
                                       int digestAlgorithm)
                                throws java.io.IOException
Throws:
java.io.IOException

createAESBlockCipher

protected BlockCipher createAESBlockCipher()

createDESedeBlockCipher

protected BlockCipher createDESedeBlockCipher()

createDigest

protected Digest createDigest(int digestAlgorithm)
                       throws java.io.IOException
Throws:
java.io.IOException

Bouncy Castle Cryptography Library 1.46