File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
spring-web/src/main/java/org/springframework/http/server/reactive Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 5656 */
5757class ServletServerHttpRequest extends AbstractServerHttpRequest {
5858
59+ private static final String X509_CERTIFICATE_ATTRIBUTE = "javax.servlet.request.X509Certificate" ;
60+
61+ private static final String SSL_SESSION_ID_ATTRIBUTE = "javax.servlet.request.ssl_session_id" ;
62+
63+
5964 protected final Log logger = LogFactory .getLog (getClass ());
6065
6166
@@ -178,8 +183,8 @@ protected SslInfo initSslInfo() {
178183 return null ;
179184 }
180185 return new DefaultSslInfo (
181- (String ) request .getAttribute ("javax.servlet.request.ssl_session_id" ),
182- (X509Certificate []) request .getAttribute ("java.security.cert.X509Certificate" ));
186+ (String ) request .getAttribute (SSL_SESSION_ID_ATTRIBUTE ),
187+ (X509Certificate []) request .getAttribute (X509_CERTIFICATE_ATTRIBUTE ));
183188 }
184189
185190 @ Override
You can’t perform that action at this time.
0 commit comments