public class

CipherKeyGenerator

extends Object
java.lang.Object
   ↳ org.bouncycastle.crypto.CipherKeyGenerator
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

The base class for symmetric, or secret, cipher key generators.

Summary

Fields
protected SecureRandom random
protected int strength
Public Constructors
CipherKeyGenerator()
Public Methods
byte[] generateKey()
generate a secret key.
void init(KeyGenerationParameters param)
initialise the key generator.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected SecureRandom random

protected int strength

Public Constructors

public CipherKeyGenerator ()

Public Methods

public byte[] generateKey ()

generate a secret key.

Returns
  • a byte array containing the key value.

public void init (KeyGenerationParameters param)

initialise the key generator.

Parameters
param the parameters to be used for key generation