Class AESKeyGenerator
- java.lang.Object
- 
- javax.crypto.KeyGeneratorSpi
- 
- com.fortanix.sdkms.jce.provider.keys.sym.aes.AESKeyGenerator
 
 
- 
 public final class AESKeyGenerator extends KeyGeneratorSpi 
- 
- 
Constructor SummaryConstructors Constructor Description AESKeyGenerator()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SecretKeyengineGenerateKey()Generates the AES key.protected voidengineInit(int keysize, SecureRandom random)Initializes this key generator for a certain keysize, using the given source of randomness.protected voidengineInit(SecureRandom random)Initializes this key generator.protected voidengineInit(AlgorithmParameterSpec params, SecureRandom random)
 
- 
- 
- 
Method Detail- 
engineInitprotected void engineInit(SecureRandom random) Initializes this key generator.- Specified by:
- engineInitin class- KeyGeneratorSpi
- Parameters:
- random- the source of randomness for this generator
 
 - 
engineInitprotected void engineInit(int keysize, SecureRandom random)Initializes this key generator for a certain keysize, using the given source of randomness.- Specified by:
- engineInitin class- KeyGeneratorSpi
- Parameters:
- keysize- the keysize. This is an algorithm-specific metric specified in number of bits.
- random- the source of randomness for this key generator
 
 - 
engineGenerateKeyprotected SecretKey engineGenerateKey() Generates the AES key.- Specified by:
- engineGenerateKeyin class- KeyGeneratorSpi
- Returns:
- the new AES key
 
 - 
engineInitprotected void engineInit(AlgorithmParameterSpec params, SecureRandom random) throws InvalidAlgorithmParameterException - Specified by:
- engineInitin class- KeyGeneratorSpi
- Throws:
- InvalidAlgorithmParameterException
 
 
- 
 
-