Package com.threerings.presents.net

Examples of com.threerings.presents.net.UsernamePasswordCreds


            // indicate which server to which we should connect
            client.setServer(server, Client.DEFAULT_SERVER_PORTS);

            // create and set our credentials
            client.setCredentials(
                new UsernamePasswordCreds(username, authkey));

            // we want to hide the client frame when we logoff
            client.addClientObserver(new ClientAdapter() {
                @Override
                public void clientDidLogoff (Client c)
View Full Code Here


        String msg = MessageBundle.tcompose("m.logging_on",
                                            server, String.valueOf(port));
        _status.append(_msgs.xlate(msg) + "\n");

        // configure the client with some credentials and logon
        Credentials creds = new UsernamePasswordCreds(username, password);
        Client client = _ctx.getClient();
        client.setCredentials(creds);
        client.logon();
    }
View Full Code Here

        client.setServer(server, Client.DEFAULT_SERVER_PORTS);

        // configure the client with some credentials and logon
        if (username != null && password != null) {
            // create and set our credentials
            client.setCredentials(new UsernamePasswordCreds(new Name(username), password));
            client.logon();
        }
    }
View Full Code Here

            password = "test";
        }

        // create and set our credentials
        client.setCredentials(
            new UsernamePasswordCreds(new Name(username), password));

        // this is a bit of a hack, but we need to give the server long
        // enough to fully initialize and start listening on its socket
        // before we try to logon; there's no good way for this otherwise
        // wholly independent thread to wait for the server to be ready as
View Full Code Here

TOP

Related Classes of com.threerings.presents.net.UsernamePasswordCreds

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.