org.bouncycastle.crypto.tls
Class DefaultTlsCipherFactory
java.lang.Object
org.bouncycastle.crypto.tls.DefaultTlsCipherFactory
- All Implemented Interfaces:
- TlsCipherFactory
public class DefaultTlsCipherFactory
- extends java.lang.Object
- implements TlsCipherFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultTlsCipherFactory
public DefaultTlsCipherFactory()
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