public class SecurityProviderBlockCipherFactory extends java.lang.Object implements BlockCipherFactory
Constructor and Description |
---|
SecurityProviderBlockCipherFactory(java.lang.String transformation,
java.security.Provider provider)
Initializes a new SecurityProvider instance which is to
initialize BlockCiphers that are implemented by a specific
java.security.Provider.
|
SecurityProviderBlockCipherFactory(java.lang.String transformation,
java.lang.String providerName)
Initializes a new SecurityProvider instance which is to
initialize BlockCiphers that are implemented by a specific
java.security.Provider.
|
Modifier and Type | Method and Description |
---|---|
org.bouncycastle.crypto.BlockCipher |
createBlockCipher(int keySize)
Initializes a new BlockCipher instance.
|
public SecurityProviderBlockCipherFactory(java.lang.String transformation, java.security.Provider provider)
transformation
- the name of the transformationprovider
- the java.security.Provider which provides the
implementations of the BlockCiphers to be initialized by the new
instancepublic SecurityProviderBlockCipherFactory(java.lang.String transformation, java.lang.String providerName)
transformation
- the name of the transformationprovider
- the name of the java.security.Provider which
provides the implementations of the BlockCiphers to be
initialized by the new instancepublic org.bouncycastle.crypto.BlockCipher createBlockCipher(int keySize) throws java.lang.Exception
createBlockCipher
in interface BlockCipherFactory
keySize
- AES key size (16, 24, 32 bytes)java.lang.Exception
- if anything goes wrong while initializing a new
BlockCipher instance
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.