Package org.apache.qpid.server.model

Examples of org.apache.qpid.server.model.AccessControlProvider


        Map<String, Object> attributes = new HashMap<String, Object>();
        attributes.put(AccessControlProvider.ID, UUID.randomUUID());
        attributes.put(AccessControlProvider.NAME, "acl");
        attributes.put(AccessControlProvider.TYPE, FileAccessControlProviderConstants.ACL_FILE_PROVIDER_TYPE);
        attributes.put(FileAccessControlProviderConstants.PATH, aclFile.getAbsolutePath());
        AccessControlProvider acl = _objectFactory.create(AccessControlProvider.class, attributes, _broker);
        acl.getAccessControl().open();

        assertNotNull("ACL was not created from acl file: " + aclFile.getAbsolutePath(), acl);
    }
View Full Code Here


        attributes.put(AccessControlProvider.NAME, "acl");
        attributes.put(AccessControlProvider.TYPE, FileAccessControlProviderConstants.ACL_FILE_PROVIDER_TYPE);
        attributes.put(FileAccessControlProviderConstants.PATH, aclFile.getAbsolutePath());
        try
        {
            AccessControlProvider control = _objectFactory.create(AccessControlProvider.class, attributes, _broker);
            control.getAccessControl().open();
            fail("It should not be possible to create and initialise ACL with non existing file");
        }
        catch (IllegalConfigurationException e)
        {
            assertTrue("Unexpected exception message: " + e.getMessage(), Pattern.matches("ACL file '.*' is not found", e.getMessage()));
View Full Code Here

TOP

Related Classes of org.apache.qpid.server.model.AccessControlProvider

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.