Package org.apache.vysper.xmpp.authorization

Examples of org.apache.vysper.xmpp.authorization.SimpleUserAuthorization


* @author The Apache MINA Project (dev@mina.apache.org)
*/
public class MemoryStorageProviderRegistry extends OpenStorageProviderRegistry {

    public MemoryStorageProviderRegistry() {
        add(new SimpleUserAuthorization());
        add(new MemoryRosterManager());
       
        // provider from external modules, low coupling, fail when modules are not present
        add("org.apache.vysper.xmpp.modules.extension.xep0060_pubsub.storageprovider.LeafNodeInMemoryStorageProvider");
        add("org.apache.vysper.xmpp.modules.extension.xep0060_pubsub.storageprovider.CollectionNodeInMemoryStorageProvider");
View Full Code Here


        List<SASLMechanism> methods = new ArrayList<SASLMechanism>();
        methods.add(new Plain());
       
        sessionContext.getServerRuntimeContext().getServerFeatures().setAuthenticationMethods(methods);
        SimpleUserAuthorization users = new SimpleUserAuthorization();
        users.addUser("user007@test", "pass007");
        OpenStorageProviderRegistry providerRegistry = new OpenStorageProviderRegistry();
        providerRegistry.add(users);
        ((DefaultServerRuntimeContext) sessionContext.getServerRuntimeContext()).setStorageProviderRegistry(providerRegistry);
    }
View Full Code Here

        List<SASLMechanism> methods = new ArrayList<SASLMechanism>();
        methods.add(new Plain());
       
        sessionContext.getServerRuntimeContext().getServerFeatures().setAuthenticationMethods(methods);
        SimpleUserAuthorization users = new SimpleUserAuthorization();
        users.addUser("user007@test", "pass007");
        OpenStorageProviderRegistry providerRegistry = new OpenStorageProviderRegistry();
        providerRegistry.add(users);
        ((DefaultServerRuntimeContext) sessionContext.getServerRuntimeContext()).setStorageProviderRegistry(providerRegistry);
    }
View Full Code Here

* @author The Apache MINA Project (dev@mina.apache.org)
*/
public class MemoryStorageProviderRegistry extends OpenStorageProviderRegistry {

    public MemoryStorageProviderRegistry() {
        add(new SimpleUserAuthorization());
        add(new MemoryRosterManager());

        // provider from external modules, low coupling, fail when modules are not present
        add("org.apache.vysper.xmpp.modules.extension.xep0060_pubsub.storageprovider.LeafNodeInMemoryStorageProvider");
        add("org.apache.vysper.xmpp.modules.extension.xep0060_pubsub.storageprovider.CollectionNodeInMemoryStorageProvider");
View Full Code Here

        List<SASLMechanism> methods = new ArrayList<SASLMechanism>();
        methods.add(new Plain());

        sessionContext.getServerRuntimeContext().getServerFeatures().setAuthenticationMethods(methods);
        SimpleUserAuthorization users = new SimpleUserAuthorization();
        users.addUser("user007@test", "pass007");
        OpenStorageProviderRegistry providerRegistry = new OpenStorageProviderRegistry();
        providerRegistry.add(users);
        ((DefaultServerRuntimeContext) sessionContext.getServerRuntimeContext())
                .setStorageProviderRegistry(providerRegistry);
    }
View Full Code Here

        List<SASLMechanism> methods = new ArrayList<SASLMechanism>();
        methods.add(new Plain());

        sessionContext.getServerRuntimeContext().getServerFeatures().setAuthenticationMethods(methods);
        SimpleUserAuthorization users = new SimpleUserAuthorization();
        users.addUser("user007@test", "pass007");
        OpenStorageProviderRegistry providerRegistry = new OpenStorageProviderRegistry();
        providerRegistry.add(users);
        ((DefaultServerRuntimeContext) sessionContext.getServerRuntimeContext())
                .setStorageProviderRegistry(providerRegistry);
    }
View Full Code Here

* @author The Apache MINA Project (dev@mina.apache.org)
*/
public class MemoryStorageProviderRegistry extends OpenStorageProviderRegistry {

    public MemoryStorageProviderRegistry() {
        add(new SimpleUserAuthorization());
        add(new MemoryRosterManager());

        // provider from external modules, low coupling, fail when modules are not present
        add("org.apache.vysper.xmpp.modules.extension.xep0060_pubsub.storageprovider.LeafNodeInMemoryStorageProvider");
        add("org.apache.vysper.xmpp.modules.extension.xep0060_pubsub.storageprovider.CollectionNodeInMemoryStorageProvider");
View Full Code Here

        List<SASLMechanism> methods = new ArrayList<SASLMechanism>();
        methods.add(new Plain());

        sessionContext.getServerRuntimeContext().getServerFeatures().setAuthenticationMethods(methods);
        SimpleUserAuthorization users = new SimpleUserAuthorization();
        users.addUser(EntityImpl.parseUnchecked("user007@test"), "pass007");
        OpenStorageProviderRegistry providerRegistry = new OpenStorageProviderRegistry();
        providerRegistry.add(users);
        ((DefaultServerRuntimeContext) sessionContext.getServerRuntimeContext())
                .setStorageProviderRegistry(providerRegistry);
    }
View Full Code Here

        List<SASLMechanism> methods = new ArrayList<SASLMechanism>();
        methods.add(new Plain());

        sessionContext.getServerRuntimeContext().getServerFeatures().setAuthenticationMethods(methods);
        SimpleUserAuthorization users = new SimpleUserAuthorization();
        users.addUser(EntityImpl.parseUnchecked("user007@test"), "pass007");
        OpenStorageProviderRegistry providerRegistry = new OpenStorageProviderRegistry();
        providerRegistry.add(users);
        ((DefaultServerRuntimeContext) sessionContext.getServerRuntimeContext())
                .setStorageProviderRegistry(providerRegistry);
    }
View Full Code Here

TOP

Related Classes of org.apache.vysper.xmpp.authorization.SimpleUserAuthorization

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.