Package org.apache.qpid.server.security.auth

Examples of org.apache.qpid.server.security.auth.AuthenticationResult


        }
    }

    public void testAuthenticateWithPlainSaslServer() throws Exception
    {
        AuthenticationResult result = authenticatePlain(TEST_USER, TEST_PASSWORD);
        assertAuthenticated(result);
    }
View Full Code Here


        assertAuthenticated(result);
    }

    public void testAuthenticateWithPlainSaslServerInvalidPassword() throws Exception
    {
        AuthenticationResult result = authenticatePlain(TEST_USER, "wrong-password");
        assertUnauthenticated(result);
    }
View Full Code Here

        assertUnauthenticated(result);
    }

    public void testAuthenticateWithPlainSaslServerInvalidUsername() throws Exception
    {
        AuthenticationResult result = authenticatePlain("wrong-user", TEST_PASSWORD);
        assertUnauthenticated(result);
    }
View Full Code Here

        assertUnauthenticated(result);
    }

    public void testAuthenticateWithCramMd5SaslServer() throws Exception
    {
        AuthenticationResult result = authenticateCramMd5(TEST_USER, TEST_PASSWORD);
        assertAuthenticated(result);
    }
View Full Code Here

        assertAuthenticated(result);
    }

    public void testAuthenticateWithCramMd5SaslServerInvalidPassword() throws Exception
    {
        AuthenticationResult result = authenticateCramMd5(TEST_USER, "wrong-password");
        assertUnauthenticated(result);
    }
View Full Code Here

        assertUnauthenticated(result);
    }

    public void testAuthenticateWithCramMd5SaslServerInvalidUsername() throws Exception
    {
        AuthenticationResult result = authenticateCramMd5("wrong-user", TEST_PASSWORD);
        assertUnauthenticated(result);
    }
View Full Code Here

        assertUnauthenticated(result);
    }

    public void testAuthenticateValidCredentials()
    {
        AuthenticationResult result = _authenticationManager.authenticate(TEST_USER, TEST_PASSWORD);
        assertEquals("Unexpected authentication result", AuthenticationStatus.SUCCESS, result.getStatus());
        assertAuthenticated(result);
    }
View Full Code Here

        assertAuthenticated(result);
    }

    public void testAuthenticateInvalidPassword()
    {
        AuthenticationResult result = _authenticationManager.authenticate(TEST_USER, "invalid");
        assertUnauthenticated(result);
    }
View Full Code Here

        assertUnauthenticated(result);
    }

    public void testAuthenticateInvalidUserName()
    {
        AuthenticationResult result = _authenticationManager.authenticate("invalid", TEST_PASSWORD);
        assertUnauthenticated(result);
    }
View Full Code Here

    {
        SaslServer ss = _authenticationManager.createSaslServer("CRAM-MD5", "test", null);
        byte[] challenge = ss.evaluateResponse(new byte[0]);
        byte[] response = SaslUtil.generateCramMD5ClientResponse(userName, userPassword, challenge);

        AuthenticationResult result = _authenticationManager.authenticate(ss, response);
        return result;
    }
View Full Code Here

TOP

Related Classes of org.apache.qpid.server.security.auth.AuthenticationResult

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.