Package plugins.Freetalk

Examples of plugins.Freetalk.IdentityManager


     *   FreetalkAddress=freetalkAddr
     */
    private void handleListKnownIdentities(final PluginReplySender replysender, final SimpleFieldSet params)
    throws PluginNotFoundException
    {
      final IdentityManager identityManager = mFreetalk.getIdentityManager();
     
      synchronized(identityManager) {
        for(final Identity id : identityManager.getAllIdentities()) {
            if (id instanceof OwnIdentity) {
                continue;
            }
            final SimpleFieldSet sfs = new SimpleFieldSet(true);
            sfs.putOverwrite("Message", "KnownIdentity");
View Full Code Here


     */
    // TODO: Require some kind of authentication.
    private void handleListOwnIdentities(final PluginReplySender replysender, final SimpleFieldSet params)
    throws PluginNotFoundException
    {
      final IdentityManager identityManager = mFreetalk.getIdentityManager();
     
      synchronized(identityManager) {
      for(final OwnIdentity id : identityManager.ownIdentityIterator()) {
            final SimpleFieldSet sfs = new SimpleFieldSet(true);
            sfs.putOverwrite("Message", "OwnIdentity");
            sfs.putOverwrite("ID", id.getID());
            sfs.putOverwrite("Nickname", id.getNickname());
            sfs.putOverwrite("FreetalkAddress", id.getFreetalkAddress());
View Full Code Here

TOP

Related Classes of plugins.Freetalk.IdentityManager

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.