Top Description Constructors Methods
org.bouncycastle.crypto.util

public Class CipherKeyGeneratorFactory

extends Object
Class Inheritance
Imports
java.security.SecureRandom, org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.asn1.nist.NISTObjectIdentifiers, org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers, org.bouncycastle.crypto.CipherKeyGenerator, .KeyGenerationParameters, org.bouncycastle.crypto.generators.DESKeyGenerator, .DESedeKeyGenerator, org.bouncycastle.internal.asn1.kisa.KISAObjectIdentifiers, org.bouncycastle.internal.asn1.ntt.NTTObjectIdentifiers, org.bouncycastle.internal.asn1.oiw.OIWObjectIdentifiers

Factory methods for generating secret key generators for symmetric ciphers.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static CipherKeyGenerator
public static CipherKeyGenerator

Returns:

an initialised CipherKeyGenerator.
createKeyGenerator
(ASN1ObjectIdentifier
the Object Identifier indicating the algorithn the generator is for.
algorithm
,
SecureRandom
a source of random to initialise the generator with.
random
)

Create a key generator for the passed in Object Identifier.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CipherKeyGeneratorFactoryback to summary
private CipherKeyGeneratorFactory()

Method Detail

createCipherKeyGeneratorback to summary
private static CipherKeyGenerator createCipherKeyGenerator(SecureRandom random, int keySize)
createKeyGeneratorback to summary
public static CipherKeyGenerator createKeyGenerator(ASN1ObjectIdentifier algorithm, SecureRandom random) throws IllegalArgumentException

Create a key generator for the passed in Object Identifier.

Parameters
algorithm:ASN1ObjectIdentifier

the Object Identifier indicating the algorithn the generator is for.

random:SecureRandom

a source of random to initialise the generator with.

Returns:CipherKeyGenerator

an initialised CipherKeyGenerator.

Exceptions
IllegalArgumentException:
if the algorithm cannot be identified.