diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/SecureRequestCustomizer.java b/jetty-server/src/main/java/org/eclipse/jetty/server/SecureRequestCustomizer.java index 7109448b9670..d37a1d174b1d 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/SecureRequestCustomizer.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/SecureRequestCustomizer.java @@ -369,7 +369,8 @@ public Object getAttribute(String name) */ 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 @@ private SslSessionData getSslSessionData() String idStr = TypeUtil.toHexString(bytes); sslSessionData = new SslSessionData(keySize, certs, idStr); - _session.putValue(SslSessionData.class.getName(), sslSessionData); + _session.putValue(key, sslSessionData); } return sslSessionData; }