Class TlsRsaPremasterSecretParameterSpec
java.lang.Object
es.gob.jmulticard.jse.provider.rsacipher.TlsRsaPremasterSecretParameterSpec
- All Implemented Interfaces:
AlgorithmParameterSpec
Parámetros para el RSA premaster secret de SSL/TLS.
Instances of this class are immutable.
- Since:
- 1.6
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTlsRsaPremasterSecretParameterSpec
(int clientVer, int serverVer) Constructs a new TlsRsaPremasterSecretParameterSpec. -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
checkVersion
(int version) (package private) int
Returns the version of the TLS protocol by which the client wishes to communicate during this session.(package private) int
Returns the negotiated version of the TLS protocol which contains the lower of that suggested by the client in the client hello and the highest supported by the server.
-
Field Details
-
clientVersion
private final int clientVersion -
serverVersion
private final int serverVersion
-
-
Constructor Details
-
TlsRsaPremasterSecretParameterSpec
TlsRsaPremasterSecretParameterSpec(int clientVer, int serverVer) Constructs a new TlsRsaPremasterSecretParameterSpec.- Parameters:
clientVer
- the version of the TLS protocol by which the client wishes to communicate during this sessionserverVer
- the negotiated version of the TLS protocol which contains the lower of that suggested by the client in the client hello and the highest supported by the server.- Throws:
IllegalArgumentException
- if clientVersion or serverVersion are negative or larger than (2^16 - 1)
-
-
Method Details
-
getClientVersion
int getClientVersion()Returns the version of the TLS protocol by which the client wishes to communicate during this session.- Returns:
- the version of the TLS protocol in ClientHello message
-
getServerVersion
int getServerVersion()Returns the negotiated version of the TLS protocol which contains the lower of that suggested by the client in the client hello and the highest supported by the server.- Returns:
- the negotiated version of the TLS protocol in ServerHello message
-
checkVersion
private static int checkVersion(int version)
-