Class MasterSecretValidators
java.lang.Object
com.amazonaws.http.conn.ssl.MasterSecretValidators
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface to validate the master secret of a SSL sessionstatic classDummy implementation ofMasterSecretValidators.MasterSecretValidatorthat always returns true. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe implementation ofMasterSecretValidators.MasterSecretValidatordepends on the JVM version.getMasterSecretValidator(JavaVersionParser.JavaVersion javaVersion)
-
Constructor Details
-
MasterSecretValidators
public MasterSecretValidators()
-
-
Method Details
-
getMasterSecretValidator
The implementation ofMasterSecretValidators.MasterSecretValidatordepends on the JVM version. Certain JVMs are affected by a serious bug that could allow a malicious MITM to negotiate a null master secret. Non-affected JVMs return a dummy implementation that always returns true- Returns:
- The correct implementation of
MasterSecretValidators.MasterSecretValidator
-
getMasterSecretValidator
public static MasterSecretValidators.MasterSecretValidator getMasterSecretValidator(JavaVersionParser.JavaVersion javaVersion) - Parameters:
javaVersion- Current Java version- Returns:
- An appropriate
MasterSecretValidators.MasterSecretValidatorper the Java version in use
-