Package org.openstack.keystone.auth.client

Examples of org.openstack.keystone.auth.client.KeystoneAuthenticationClient


    // server.stop();
    // }

    @Test
    public void test() throws Exception {
        KeystoneAuthenticationClient client = new KeystoneAuthenticationClient();
        PasswordCredentials passwordCredentials = new PasswordCredentials();
        passwordCredentials.setUsername("user1");
        passwordCredentials.setPassword("secretuser1");

        String tenantId = null;
        client.authenticate(tenantId, passwordCredentials);
    }
View Full Code Here


        client.authenticate(tenantId, passwordCredentials);
    }

    @Test(expected = KeystoneAuthenticationException.class)
    public void listTenants_forgedToken() throws Exception {
        KeystoneAuthenticationClient client = new KeystoneAuthenticationClient();
        KeystoneAuthenticationToken fakeToken = buildFakeToken("HELLOWORLD");
        client.listTenants(fakeToken);
    }
View Full Code Here

TOP

Related Classes of org.openstack.keystone.auth.client.KeystoneAuthenticationClient

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.