public class CipherKeyGeneratorFactory extends Object
Modifier and Type | Method and Description |
---|---|
static CipherKeyGenerator |
createKeyGenerator(ASN1ObjectIdentifier algorithm,
SecureRandom random)
Create a key generator for the passed in Object Identifier.
|
public static CipherKeyGenerator createKeyGenerator(ASN1ObjectIdentifier algorithm, SecureRandom random) throws IllegalArgumentException
algorithm
- the Object Identifier indicating the algorithn the generator is for.random
- a source of random to initialise the generator with.IllegalArgumentException
- if the algorithm cannot be identified.Copyright © 2021 BouncyCastle.org. All rights reserved.