It depends on how you configure the container. In general, the SSL container configuration will not be accessible to the servlet that it contains. For example, in Apache Tomcat, the configuration of this SSL connector can be completely independent of the settings available to the servlet. (In addition, SSL can be processed by the APR or the Apache Httpd interface, for example, which will not have much to do with the configuration of the Java keystore).
You will probably be able to access the keystore if they are configured using properties javax.net.ssl.*. However, this is not necessarily a way to configure the SSLContextserver connector. It is generally not recommended to pass these parameters on the command line or in a production environment.
, , , , , , , . , , Tomcat , .
, , - ( ). , , SSL , ( ).