APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.pkcs11

public final Class P11TlsKeyMaterialGenerator

extends KeyGeneratorSpi
Class Inheritance
Imports
java.util.*, java.security.*, java.security.spec.AlgorithmParameterSpec, javax.crypto.*, javax.crypto.spec.*, sun.security.internal.spec.*, sun.security.internal.interfaces.TlsMasterSecret, sun.security.pkcs11.wrapper.*

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

Field Summary

Modifier and TypeField and Description
private final String
private long
private static final String
private P11Key
private TlsKeyMaterialParameterSpec
spec

References Deprecated TlsKeyMaterialParameterSpec is deprecated or references (maybe indirectly) at least one deprecated element.
private final boolean
private int
private final Token

Constructor Summary

AccessConstructor and Description
pack-priv
P11TlsKeyMaterialGenerator(Token token, String algorithm, long mechanism)

Method Summary

Modifier and TypeMethod and Description
protected SecretKey
engineGenerateKey()

Implements abstract javax.crypto.KeyGeneratorSpi.engineGenerateKey.

Generates a secret key.

protected void
engineInit(SecureRandom random)

Implements abstract javax.crypto.KeyGeneratorSpi.engineInit.

Initializes the key generator.

protected void
engineInit(AlgorithmParameterSpec params, SecureRandom random)

Implements abstract javax.crypto.KeyGeneratorSpi.engineInit.

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

protected void
engineInit(int keysize, SecureRandom random)

Implements abstract javax.crypto.KeyGeneratorSpi.engineInit.

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

Field Detail

algorithmback to summary
private final String algorithm
mechanismback to summary
private long mechanism
MSGback to summary
private static final String MSG
p11Keyback to summary
private P11Key p11Key
specback to summary
private TlsKeyMaterialParameterSpec spec

References Deprecated

TlsKeyMaterialParameterSpec is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Annotations
@SuppressWarnings:deprecation
supportSSLv3back to summary
private final boolean supportSSLv3
tlsVersionback to summary
private int tlsVersion
tokenback to summary
private final Token token

Constructor Detail

P11TlsKeyMaterialGeneratorback to summary
pack-priv P11TlsKeyMaterialGenerator(Token token, String algorithm, long mechanism) throws PKCS11Exception

Method Detail

engineGenerateKeyback to summary
protected SecretKey engineGenerateKey()

Implements abstract javax.crypto.KeyGeneratorSpi.engineGenerateKey.

Doc from javax.crypto.KeyGeneratorSpi.engineGenerateKey.

Generates a secret key.

Annotations
@SuppressWarnings:deprecation
engineInitback to summary
protected void engineInit(SecureRandom random)

Implements abstract javax.crypto.KeyGeneratorSpi.engineInit.

Doc from javax.crypto.KeyGeneratorSpi.engineInit.

Initializes the key generator.

engineInitback to summary
protected void engineInit(AlgorithmParameterSpec params, SecureRandom random) throws InvalidAlgorithmParameterException

Implements abstract javax.crypto.KeyGeneratorSpi.engineInit.

Doc from javax.crypto.KeyGeneratorSpi.engineInit.

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

Annotations
@SuppressWarnings:deprecation
Exceptions
InvalidAlgorithmParameterException:
if params is inappropriate for this key generator
engineInitback to summary
protected void engineInit(int keysize, SecureRandom random)

Implements abstract javax.crypto.KeyGeneratorSpi.engineInit.

Doc from javax.crypto.KeyGeneratorSpi.engineInit.

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