Issue #4923 - Applying changes requested in PR

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
Joakim Erdfelt 2020-06-01 07:15:07 -05:00
parent b6d24c2396
commit f9b75ff1a3
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
1 changed files with 3 additions and 2 deletions

View File

@ -369,7 +369,8 @@ public class SecureRequestCustomizer implements HttpConfiguration.Customizer
*/
private SslSessionData getSslSessionData()
{
SslSessionData sslSessionData = (SslSessionData)_session.getValue(SslSessionData.class.getName());
String key = SslSessionData.class.getName();
SslSessionData sslSessionData = (SslSessionData)_session.getValue(key);
if (sslSessionData == null)
{
String cipherSuite = _session.getCipherSuite();
@ -381,7 +382,7 @@ public class SecureRequestCustomizer implements HttpConfiguration.Customizer
String idStr = TypeUtil.toHexString(bytes);
sslSessionData = new SslSessionData(keySize, certs, idStr);
_session.putValue(SslSessionData.class.getName(), sslSessionData);
_session.putValue(key, sslSessionData);
}
return sslSessionData;
}