@GET
    @Path("parameters")
    public Map<String, String> getParameters()
            throws GuacamoleException {

        SharingProfile sharingProfile = getInternalObject();
        
        // Pull effective permissions
        Permissions effective = getUserContext().self().getEffectivePermissions();

        // Retrieve permission sets
        SystemPermissionSet systemPermissions = effective.getSystemPermissions();
        ObjectPermissionSet sharingProfilePermissions = effective.getSharingProfilePermissions();

        // Deny access if adminstrative or update permission is missing
        String identifier = sharingProfile.getIdentifier();
        if (!systemPermissions.hasPermission(SystemPermission.Type.ADMINISTER)
         && !sharingProfilePermissions.hasPermission(ObjectPermission.Type.UPDATE, identifier))
            throw new GuacamoleSecurityException("Permission to read sharing profile parameters denied.");

        // Return parameter map
        return sharingProfile.getParameters();

    }
Retrieves the connection parameters associated with the SharingProfile
exposed by this SharingProfile resource.

@return
    A map of parameter name/value pairs.

@throws GuacamoleException
    If an error occurs while retrieving the connection parameters of the
    SharingProfile.
guacamole/src/main/java/org/apache/guacamole/rest/sharingprofile/SharingProfileResource.java