Examples of initialise()


Examples of org.apache.qpid.server.security.auth.sasl.UsernamePasswordInitialiser.initialise()

public class AMQPlainSaslServerTest extends SaslServerTestCase
{
    protected void setUp() throws Exception
    {
        UsernamePasswordInitialiser handler = new AmqPlainInitialiser();
        handler.initialise(db);
        this.server = new AmqPlainSaslServer(handler.getCallbackHandler());
        FieldTable table = FieldTableFactory.newFieldTable();
        table.setString("LOGIN", username);
        table.setString("PASSWORD", password);
        correctResponse = table.getDataAsBytes();
View Full Code Here

Examples of org.apache.qpid.server.security.auth.sasl.amqplain.AmqPlainInitialiser.initialise()

         *  Create Authenticators for Plain Password file.
         */

        // Accept AMQPlain incomming and compare it to the file.
        AmqPlainInitialiser amqplain = new AmqPlainInitialiser();
        amqplain.initialise(this);

        // Accept Plain incomming and compare it to the file.
        PlainInitialiser plain = new PlainInitialiser();
        plain.initialise(this);

View Full Code Here

Examples of org.apache.qpid.server.security.auth.sasl.crammd5.CRAMMD5HashedInitialiser.initialise()

         *  Create Authenticators for MD5 Password file.
         */

        // Accept Plain incomming and hash it for comparison to the file.
        CRAMMD5HashedInitialiser cram = new CRAMMD5HashedInitialiser();
        cram.initialise(this);
        _saslServers.put(cram.getMechanismName(), cram);

        //fixme The PDs should setup a PD Mangement MBean
//        try
//        {
View Full Code Here

Examples of org.apache.qpid.server.security.auth.sasl.crammd5.CRAMMD5HexInitialiser.initialise()

        //Use properties to create a PrincipalDatabase
        Base64MD5PasswordFilePrincipalDatabase db = createTestPrincipalDatabase();
        assertEquals("Unexpected number of test users in the db", 2, db.getUsers().size());

        _initializer.initialise(db);

        _saslFactory = new CRAMMD5HexServerFactory();

        _saslServer = _saslFactory.createSaslServer(CRAMMD5HexSaslServer.MECHANISM,
                "AMQP",
View Full Code Here

Examples of org.apache.qpid.server.security.auth.sasl.crammd5.CRAMMD5Initialiser.initialise()

        //  Accept MD5 incomming and use plain comparison with the file
        PlainInitialiser cram = new PlainInitialiser();
        cram.initialise(this);
        // Accept Plain incomming and hash it for comparison to the file.
        CRAMMD5Initialiser plain = new CRAMMD5Initialiser();
        plain.initialise(this, CRAMMD5Initialiser.HashDirection.INCOMMING);

        _saslServers.put(plain.getMechanismName(), cram);
        _saslServers.put(cram.getMechanismName(), plain);
    }
View Full Code Here

Examples of org.apache.qpid.server.security.auth.sasl.plain.PlainInitialiser.initialise()

         *  Create Authenticators for Properties Principal Database.
         */

        //  Accept MD5 incomming and use plain comparison with the file
        PlainInitialiser cram = new PlainInitialiser();
        cram.initialise(this);
        // Accept Plain incomming and hash it for comparison to the file.
        CRAMMD5Initialiser plain = new CRAMMD5Initialiser();
        plain.initialise(this, CRAMMD5Initialiser.HashDirection.INCOMMING);

        _saslServers.put(plain.getMechanismName(), cram);
View Full Code Here

Examples of org.apache.stanbol.entityhub.indexing.core.EntityDataIterable.initialise()

            CONFIG_ROOT+'/'+testName){};
        EntityDataIterable iterable = config.getDataIterable();
        assertNotNull(iterable);
        assertEquals(iterable.getClass(), RdfIndexingSource.class);
        assertTrue(iterable.needsInitialisation());
        iterable.initialise();
        EntityDataIterator it = iterable.entityDataIterator();
        long count = 0;
        while(it.hasNext()){
            String entity = it.next();
            log.info("validate Entity "+entity);
View Full Code Here

Examples of org.apache.stanbol.entityhub.indexing.core.EntityDataProvider.initialise()

            entityIdIterator.initialise();
        }
        EntityDataProvider dataProvider = config.getEntityDataProvider();
        assertNotNull(dataProvider);
        assertTrue(dataProvider.needsInitialisation());//there are test data to load
        dataProvider.initialise();
        assertEquals(dataProvider.getClass(), RdfIndexingSource.class);
        long count = 0;
        while(entityIdIterator.hasNext()){
            EntityScore entityScore = entityIdIterator.next();
            assertNotNull(entityScore);
View Full Code Here

Examples of org.apache.stanbol.entityhub.indexing.core.EntityIterator.initialise()

        IndexingConfig config = new IndexingConfig(CONFIG_ROOT+File.separatorChar+testName,
            CONFIG_ROOT+'/'+testName){};
        EntityIterator entityIdIterator = config.getEntityIdIterator();
        assertNotNull("Unable to perform test whithout EntityIterator",entityIdIterator);
        if(entityIdIterator.needsInitialisation()){
            entityIdIterator.initialise();
        }
        EntityDataProvider dataProvider = config.getEntityDataProvider();
        assertNotNull(dataProvider);
        assertTrue(dataProvider.needsInitialisation());//there are test data to load
        dataProvider.initialise();
View Full Code Here

Examples of org.apache.stanbol.entityhub.indexing.core.IndexingDestination.initialise()

        IndexingDestination destination = config.getIndexingDestination();
        assertNotNull(destination);
        assertEquals(destination.getClass(), SolrYardIndexingDestination.class);
        //initialise
        assertTrue(destination.needsInitialisation());
        destination.initialise();
        //test that the returned Yard instance is functional
        Yard yard = destination.getYard();
        assertNotNull(yard);
        assertEquals(yard.getClass(), SolrYard.class);
        Representation rep = yard.getValueFactory().createRepresentation("http://www.example.com/entity#123");
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.