public String getShareKey(Credentials credentials) {

        // Retrieve the share key from the request
        return credentials.getParameter(SHARE_KEY_NAME);

    }
Returns the share key contained within the given credentials. If there is
no such share key, null is returned.

@param credentials
    The credentials from which the share key should be retrieved.

@return
    The share key contained within the given credentials, or null if
    the credentials do not contain a share key.
extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/sharing/ConnectionSharingService.java