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

public final Class P11TlsMasterSecretGenerator

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

KeyGenerator for the SSL/TLS master secret.
Author
Andreas Sterbenz
Since
1.6

Field Summary

Modifier and TypeField and Description
private final String
pack-priv CK_VERSION
private long
private static final String
private P11Key
private TlsMasterSecretParameterSpec
spec

References Deprecated TlsMasterSecretParameterSpec 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
P11TlsMasterSecretGenerator(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
ckVersionback to summary
pack-priv CK_VERSION ckVersion
mechanismback to summary
private long mechanism
MSGback to summary
private static final String MSG
p11Keyback to summary
private P11Key p11Key
specback to summary
private TlsMasterSecretParameterSpec spec

References Deprecated

TlsMasterSecretParameterSpec 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

P11TlsMasterSecretGeneratorback to summary
pack-priv P11TlsMasterSecretGenerator(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.

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.