Examples of ProviderManager


Examples of org.jivesoftware.smack.provider.ProviderManager

  private int sessionCount = 0;
  private AdminUserConnection adminUser;
 
  RemoteSessionCountOverXMPP() {
    //register IQ handler
    ProviderManager providerMgr = ProviderManager.getInstance();
    providerMgr.addIQProvider("query", SessionCount.NAMESPACE, new SessionCount.Provider());
   
  }
View Full Code Here

Examples of org.jivesoftware.smack.provider.ProviderManager

  OLog log = Tracing.createLoggerFor(this.getClass());
  private AdminUserConnection adminUser;
  private CacheWrapper sessionItemsCache;
 
  public RemoteSessionsOnIMServerOverXMPP() {
    ProviderManager providerMgr = ProviderManager.getInstance();
    //register iq handler
    providerMgr.addIQProvider("query", SessionItems.NAMESPACE, new SessionItems.Provider());
  }
View Full Code Here

Examples of org.jivesoftware.smack.provider.ProviderManager

  private String version;
  private AdminUserConnection adminUser;
 
  RemotePluginVersionOverXMPP() {
    //register IQ handler
    ProviderManager providerMgr = ProviderManager.getInstance();
    providerMgr.addIQProvider("query", PluginVersion.NAMESPACE, new PluginVersion.Provider());
   
  }
View Full Code Here

Examples of org.jivesoftware.smack.provider.ProviderManager

  /**
   * The constructor will register the provider in the Smack API
   */
  private SXEExtensionProvider() {
    ProviderManager providerManager = ProviderManager.getInstance();
    providerManager.addExtensionProvider(SXEMessage.SXE_TAG,
        SXEMessage.SXE_XMLNS, this);
  }
View Full Code Here

Examples of org.jivesoftware.smack.provider.ProviderManager

     * attempt a Jingle connection to us after we've created a Connection, but before we've
     * setup an instance of a JingleManager.  We will appear to not support Jingle.  With the new
     * method you just call it once and all new connections will report Jingle support.)
     */
    public static void setJingleServiceEnabled() {
        ProviderManager providerManager = ProviderManager.getInstance();
        providerManager.addIQProvider("jingle", "urn:xmpp:tmp:jingle", new JingleProvider());

        // Enable the Jingle support on every established connection
        // The ServiceDiscoveryManager class should have been already
        // initialized
        Connection.addConnectionCreationListener(new ConnectionCreationListener() {
View Full Code Here

Examples of org.jivesoftware.smack.provider.ProviderManager

        xstream.registerConverter(new IPathConverter());
        xstream.processAnnotations(XStreamPacketExtension.class);
        xstream.processAnnotations(classes);
        xstream.alias(elementName, XStreamPacketExtension.class);

        ProviderManager providerManager = ProviderManager.getInstance();
        providerManager.addExtensionProvider(getElementName(), getNamespace(),
            this);
        providerManager.addIQProvider(getElementName(), getNamespace(), this);

        // TODO Validate that elementName is a valid XML identifier
    }
View Full Code Here

Examples of org.springframework.security.authentication.ProviderManager

    @Marker( SpringSecurityServices.class )
    public static AuthenticationManager buildAuthenticationManager( final List<AuthenticationProvider> providers )
            throws Exception {

        final ProviderManager manager = new ProviderManager(providers);
        manager.afterPropertiesSet();
        return manager;
    }
View Full Code Here

Examples of org.springframework.security.authentication.ProviderManager

    @Marker( SpringSecurityServices.class )
    public static AuthenticationManager buildAuthenticationManager( final List<AuthenticationProvider> providers )
            throws Exception {

        final ProviderManager manager = new ProviderManager(providers);
        manager.afterPropertiesSet();
        return manager;
    }
View Full Code Here

Examples of org.springframework.security.authentication.ProviderManager

    public void eventsArePublishedByDefault() throws Exception {
        setContext(CONTEXT);
        AuthListener listener = new AuthListener();
        appContext.addApplicationListener(listener);

        ProviderManager pm = (ProviderManager) appContext.getBeansOfType(ProviderManager.class).values().toArray()[0];
        Object eventPublisher = FieldUtils.getFieldValue(pm, "eventPublisher");
        assertNotNull(eventPublisher);
        assertTrue(eventPublisher instanceof DefaultAuthenticationEventPublisher);

        pm.authenticate(new UsernamePasswordAuthenticationToken("bob", "bobspassword"));
        assertEquals(1, listener.events.size());
    }
View Full Code Here

Examples of org.springframework.security.authentication.ProviderManager

    }

    @Test
    public void credentialsAreClearedByDefault() throws Exception {
        setContext(CONTEXT);
        ProviderManager pm = (ProviderManager) appContext.getBeansOfType(ProviderManager.class).values().toArray()[0];
        assertTrue(pm.isEraseCredentialsAfterAuthentication());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.