com.ibm.crypto.fips.provider
Class TlsKeyMaterialGenerator
- java.lang.Object
-
- javax.crypto.KeyGeneratorSpi
-
- com.ibm.crypto.fips.provider.TlsKeyMaterialGenerator
-
public final class TlsKeyMaterialGenerator extends javax.crypto.KeyGeneratorSpiKeyGenerator implementation for the SSL/TLS master secret derivation.- Since:
- 1.6
-
-
Constructor Summary
Constructors Constructor and Description TlsKeyMaterialGenerator()Verify the JCE framework in the constructor.
-
Method Summary
Methods Modifier and Type Method and Description protected javax.crypto.SecretKeyengineGenerateKey()protected voidengineInit(java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random)protected voidengineInit(int keysize, java.security.SecureRandom random)protected voidengineInit(java.security.SecureRandom random)
-
-
-
Constructor Detail
-
TlsKeyMaterialGenerator
public TlsKeyMaterialGenerator()
Verify the JCE framework in the constructor.- Throws:
java.lang.SecurityException- if fails to verify the JCE framework.
-
-
Method Detail
-
engineInit
protected void engineInit(java.security.SecureRandom random)
- Specified by:
engineInitin classjavax.crypto.KeyGeneratorSpi
-
engineInit
protected void engineInit(java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random) throws java.security.InvalidAlgorithmParameterException- Specified by:
engineInitin classjavax.crypto.KeyGeneratorSpi- Throws:
java.security.InvalidAlgorithmParameterException
-
engineInit
protected void engineInit(int keysize, java.security.SecureRandom random)- Specified by:
engineInitin classjavax.crypto.KeyGeneratorSpi
-
engineGenerateKey
protected javax.crypto.SecretKey engineGenerateKey()
- Specified by:
engineGenerateKeyin classjavax.crypto.KeyGeneratorSpi
-
-