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

Examples of org.apache.directory.ldapstudio.browser.core.model.Password


        super( parentShell );
        super.setShellStyle( super.getShellStyle() | SWT.RESIZE );

        try
        {
            this.currentPassword = currentPassword != null ? new Password( currentPassword ) : null;
        }
        catch ( IllegalArgumentException e )
        {
        }
        this.entry = entry;
View Full Code Here


    }


    private void updateNewPasswordGroup()
    {
        this.newPassword = new Password( this.newPasswordHashMethodCombo.getText(), this.newPasswordText.getText() );
        if ( !"".equals( this.newPasswordText.getText() ) || this.newPassword.getHashMethod() == null )
        {
            newPasswordPreviewValueHexText.setText( Utils.getNonNullString( this.newPassword
                .getHashedPasswordAsHexString() ) );
            newPasswordPreviewSaltHexText.setText( Utils.getNonNullString( this.newPassword.getSaltAsHexString() ) );
View Full Code Here

     */
    public void testNullPassword()
    {
        try
        {
            new Password( (String)null );
            fail();
        }
        catch ( IllegalArgumentException iae )
        {
            assertTrue( true );
View Full Code Here

    /**
     *
     */
    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

        super( parentShell );
        super.setShellStyle( super.getShellStyle() | SWT.RESIZE );

        try
        {
            this.currentPassword = currentPassword != null ? new Password( currentPassword ) : null;
        }
        catch ( IllegalArgumentException e )
        {
        }
        this.entry = entry;
View Full Code Here

TOP

Related Classes of org.apache.directory.ldapstudio.browser.core.model.Password

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.