Package net.jxta.membership

Examples of net.jxta.membership.MembershipService


        StructuredDocument identityInfo = null;

        try {
            AuthenticationCredential authCred = new AuthenticationCredential(
                    _group, null, identityInfo);
            MembershipService membershipService = _group.getMembershipService();
            _authenticator = membershipService.apply(authCred);

            if (_authenticator.isReadyForJoin()) {
                /*_credential = */membershipService.join(_authenticator);
                System.out.println("Info: join group successful.");

                //_credential.getDocument(_XML_MIME_TYPE)
                //  .sendToStream(System.out);
            } else {
View Full Code Here


        printOnLog("[+]Juntando-se ao EsPeTaCGrupo.\n");
       
        try{
            //Athenticate and join to group
        AuthenticationCredential authCred = new AuthenticationCredential(group,null,creds);
        MembershipService membership = group.getMembershipService();
        Authenticator auth = membership.apply(authCred);
            if(auth.isReadyForJoin()){
                Credential myCred = membership.join(auth);
                printOnLog("[===== Detalhes do Grupo =====]");
                StructuredTextDocument doc = (StructuredTextDocument)myCred.getDocument(new MimeMediaType("text/plain"));
                StringWriter out = new StringWriter();
                doc.sendToWriter(out);
               
View Full Code Here

TOP

Related Classes of net.jxta.membership.MembershipService

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.