Package org.apache.directory.ldapstudio.browser.core.model

Examples of org.apache.directory.ldapstudio.browser.core.model.Password.verify()


     */
    public void testPasswordSHAEncrypted()
    {
        Password password = new Password( "{SHA}5en6G6MezRroT3XKqkdPOmY/BfQ=" );
           
        assertTrue( password.verify( "secret" ) );
    }

    /**
     *
     */
 
View Full Code Here


     */
    public void testPasswordSSHAEncrypted()
    {
        Password password = new Password( "{SSHA}mjVVxasFkk59wMW4L1Ldt+YCblfhULHs03WW7g==" );
           
        assertTrue( password.verify( "secret" ) );
    }

    /**
     *
     */
 
View Full Code Here

     */
    public void testPasswordMD5Encrypted()
    {
        Password password = new Password( "{MD5}Xr4ilOzQ4PCOq3aQ0qbuaQ==" );
           
        assertTrue( password.verify( "secret" ) );
    }

    /**
     *
     */
 
View Full Code Here

     */
    public void testPasswordSMD5Encrypted()
    {
        Password password = new Password( "{SMD5}tQ9wo/VBuKsqBtylMMCcORbnYOJFMyDJ" );
           
        assertTrue( password.verify( "secret" ) );
    }

    /**
     *
     */
 
View Full Code Here

     */
    public void testPasswordCRYPTEncrypted()
    {
        Password password = new Password( "{CRYPT}qFkH8Z1woBlXw" );
           
        assertTrue( password.verify( "secret" ) );
    }

    /**
     *
     */
 
View Full Code Here

     */
    public void testPasswordBadAlgorithm()
    {
        Password password = new Password( "{CRYPTE}qFkH8Z1woBlXw" );

        assertFalse( password.verify( "secret" ) );
    }
}
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.