+ /**
+ * Returns the credentials associated with the given session.
+ *
+ * @param session The session to retrieve credentials from.
+ * @return The credentials associated with the given session.
+ */
+ protected Credentials getCredentials(HttpSession session) {
+ return (Credentials) session.getAttribute("GUAC_CREDS");
+ }
+
+ /**
+ * Returns the configurations associated with the given session.
+ *
+ * @param session The session to retrieve configurations from.
+ * @return The configurations associated with the given session.
+ */
+ protected Map<String, GuacamoleConfiguration> getConfigurations(HttpSession session) {
+ return (Map<String, GuacamoleConfiguration>) session.getAttribute("GUAC_CONFIGS");
+ }
+