APIdia Launch Partner
Top Description Fields Methods
sun.security.internal.interfaces

public Interface TlsMasterSecret

extends SecretKey
Known Direct Implementers
com.sun.crypto.provider.TlsMasterSecretGenerator.TlsMasterSecretKey
Annotations
@Deprecated
Imports
javax.crypto.SecretKey

Deprecated

Sun JDK internal use only --- WILL BE REMOVED in a future release.

An SSL/TLS master secret key. It is a SecretKey that optionally contains protocol version information that is used to detect version rollback attacks during the SSL/TLS handshake.

Implementation of this interface are returned by the generateKey() method of KeyGenerators of the type "TlsMasterSecret".

Author
Andreas Sterbenz
Since
1.6

Field Summary

Modifier and TypeField and Description
public static final long
serialVersionUID

Hides javax.crypto.SecretKey.serialVersionUID.

Deprecated A serialVersionUID field in an interface is ineffectual. Do not use; no replacement.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the major version number, or -1 if it is not available
getMajorVersion
()

Returns the major version number encapsulated in the premaster secret this master secret was derived from, or -1 if it is not available.

public int

Returns:

the major version number, or -1 if it is not available
getMinorVersion
()

Returns the minor version number encapsulated in the premaster secret this master secret was derived from, or -1 if it is not available.

Field Detail

serialVersionUIDback to summary
public static final long serialVersionUID

Hides javax.crypto.SecretKey.serialVersionUID.

Deprecated

A serialVersionUID field in an interface is ineffectual. Do not use; no replacement.

Annotations
@Deprecated
@Serial

Method Detail

getMajorVersionback to summary
public int getMajorVersion()

Returns the major version number encapsulated in the premaster secret this master secret was derived from, or -1 if it is not available.

This information will only usually only be available when RSA was used as the key exchange algorithm.

Returns:int

the major version number, or -1 if it is not available

getMinorVersionback to summary
public int getMinorVersion()

Returns the minor version number encapsulated in the premaster secret this master secret was derived from, or -1 if it is not available.

This information will only usually only be available when RSA was used as the key exchange algorithm.

Returns:int

the major version number, or -1 if it is not available