public final class

P11TlsKeyMaterialGenerator

extends KeyGeneratorSpi
java.lang.Object
   ↳ javax.crypto.KeyGeneratorSpi
     ↳ sun.security.pkcs11.P11TlsKeyMaterialGenerator

Class Overview

KeyGenerator to calculate the SSL/TLS key material (cipher keys and ivs, mac keys) from the master secret.

Summary

Protected Methods
SecretKey engineGenerateKey()
Generates a secret key.
void engineInit(int keysize, SecureRandom random)
Initializes this key generator for a certain keysize, using the given source of randomness.
void engineInit(SecureRandom random)
Initializes the key generator.
void engineInit(AlgorithmParameterSpec params, SecureRandom random)
Initializes the key generator with the specified parameter set and a user-provided source of randomness.
[Expand]
Inherited Methods
From class javax.crypto.KeyGeneratorSpi
From class java.lang.Object

Protected Methods

protected SecretKey engineGenerateKey ()

Generates a secret key.

Returns
  • the new key

protected void engineInit (int keysize, SecureRandom random)

Initializes this key generator for a certain keysize, using the given source of randomness.

Parameters
keysize the keysize. This is an algorithm-specific metric, specified in number of bits.
random the source of randomness for this key generator

protected void engineInit (SecureRandom random)

Initializes the key generator.

Parameters
random the source of randomness for this generator

protected void engineInit (AlgorithmParameterSpec params, SecureRandom random)

Initializes the key generator with the specified parameter set and a user-provided source of randomness.

Parameters
params the key generation parameters
random the source of randomness for this key generator