Package org.apache.ftpserver.usermanager

Examples of org.apache.ftpserver.usermanager.PasswordEncryptor.matches()


    @Override
    public void testMatches() {
        PasswordEncryptor encryptor = createPasswordEncryptor();
       
        assertTrue(encryptor.matches("foo", "ACBD18DB4CC2F85CEDEF654FCCC4A4D8"));
       
        // check lower case
        assertTrue(encryptor.matches("foo", "acbd18DB4CC2F85CEDEF654FCCC4A4D8"));
       
        assertFalse(encryptor.matches("foo", "bar"));
View Full Code Here


        PasswordEncryptor encryptor = createPasswordEncryptor();
       
        assertTrue(encryptor.matches("foo", "ACBD18DB4CC2F85CEDEF654FCCC4A4D8"));
       
        // check lower case
        assertTrue(encryptor.matches("foo", "acbd18DB4CC2F85CEDEF654FCCC4A4D8"));
       
        assertFalse(encryptor.matches("foo", "bar"));
    }
}
View Full Code Here

        assertTrue(encryptor.matches("foo", "ACBD18DB4CC2F85CEDEF654FCCC4A4D8"));
       
        // check lower case
        assertTrue(encryptor.matches("foo", "acbd18DB4CC2F85CEDEF654FCCC4A4D8"));
       
        assertFalse(encryptor.matches("foo", "bar"));
    }
}
View Full Code Here

    @Override
    public void testMatches() {
        PasswordEncryptor encryptor = createPasswordEncryptor();
       
        assertTrue(encryptor.matches("foo", "71288966:F7B097C7BB2D02B8C2ACCE8A17284715"));
       
        // check lower case
        assertTrue(encryptor.matches("foo", "71288966:f7b097C7BB2D02B8C2ACCE8A17284715"));
       
        assertFalse(encryptor.matches("foo", "bar:bar"));
View Full Code Here

        PasswordEncryptor encryptor = createPasswordEncryptor();
       
        assertTrue(encryptor.matches("foo", "71288966:F7B097C7BB2D02B8C2ACCE8A17284715"));
       
        // check lower case
        assertTrue(encryptor.matches("foo", "71288966:f7b097C7BB2D02B8C2ACCE8A17284715"));
       
        assertFalse(encryptor.matches("foo", "bar:bar"));
    }
}
View Full Code Here

        assertTrue(encryptor.matches("foo", "71288966:F7B097C7BB2D02B8C2ACCE8A17284715"));
       
        // check lower case
        assertTrue(encryptor.matches("foo", "71288966:f7b097C7BB2D02B8C2ACCE8A17284715"));
       
        assertFalse(encryptor.matches("foo", "bar:bar"));
    }
}
View Full Code Here

    }
   
    public void testMatches() {
        PasswordEncryptor encryptor = createPasswordEncryptor();

        assertTrue(encryptor.matches("foo", "foo"));
       
        assertFalse(encryptor.matches("foo", "bar"));
    }
   
    public void testMatchesNullPasswordToCheck() {
View Full Code Here

    public void testMatches() {
        PasswordEncryptor encryptor = createPasswordEncryptor();

        assertTrue(encryptor.matches("foo", "foo"));
       
        assertFalse(encryptor.matches("foo", "bar"));
    }
   
    public void testMatchesNullPasswordToCheck() {
        PasswordEncryptor encryptor = createPasswordEncryptor();
       
View Full Code Here

   
    public void testMatchesNullPasswordToCheck() {
        PasswordEncryptor encryptor = createPasswordEncryptor();
       
        try {
            encryptor.matches(null, "bar");
            fail("Must throw NullPointerException");
        } catch (NullPointerException e) {
            // OK
        }
    }
View Full Code Here

   
    public void testMatchesNullStoredPassword() {
        PasswordEncryptor encryptor = createPasswordEncryptor();
       
        try {
            encryptor.matches("foo", null);
            fail("Must throw NullPointerException");
        } catch (NullPointerException e) {
            // OK
        }
    }
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.