Package org.glyptodon.guacamole.net.auth

Examples of org.glyptodon.guacamole.net.auth.Connection


                    request.getParameter(param));

        }

        // Create connection skeleton
        Connection connection = directory.get(identifier);
        connection.setName(name);
        connection.setConfiguration(config);

        // Update connection
        directory.update(connection);

    }
View Full Code Here


        // For each entry, write corresponding connection element
        for (String identifier : identifiers) {

            // Write each connection
            Connection connection = directory.get(identifier);
            writeConnection(self, xml, connection);

        }

        // End connections
View Full Code Here

                    request.getParameter(param));

        }

        // Create connection skeleton
        Connection connection = new DummyConnection();
        connection.setName(name);
        connection.setConfiguration(config);

        // Add connection
        directory.add(connection);

    }
View Full Code Here

                // Get connection directory
                Directory<String, Connection> directory =
                    context.getRootConnectionGroup().getConnectionDirectory();

                // Get authorized connection
                Connection connection = directory.get(id);
                if (connection == null) {
                    logger.info("Connection \"{}\" does not exist for user \"{}\".", id, context.self().getUsername());
                    throw new GuacamoleSecurityException("Requested connection is not authorized.");
                }

                // Connect socket
                socket = connection.connect(info);
                logger.info("User \"{}\" successfully connected to \"{}\".", context.self().getUsername(), id);
                break;
            }

            // Connection group identifiers
View Full Code Here

TOP

Related Classes of org.glyptodon.guacamole.net.auth.Connection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.