Package com.openbravo.pos.util

Examples of com.openbravo.pos.util.AltEncrypter


        config.setProperty("ws.deletert", Boolean.toString(jchkWSDeleteRT.isSelected()));

        config.setProperty("ws.type", comboValue( jComboBoxWS.getSelectedItem()));
       
        config.setProperty("ws.user", jtxtName.getText());
        AltEncrypter cypher = new AltEncrypter("cypherkey" + jtxtName.getText());            
        config.setProperty("ws.password", "crypt:" + cypher.encrypt(new String(jtxtPassword.getPassword())));

        String tmpPayID = jtxtPaymentID.getText();
        if (tmpPayID.equals(""))
            tmpPayID="1";
        else
View Full Code Here


       
        String sDBUser = config.getProperty("db.user");
        String sDBPassword = config.getProperty("db.password");       
        if (sDBUser != null && sDBPassword != null && sDBPassword.startsWith("crypt:")) {
            // La clave esta encriptada.
            AltEncrypter cypher = new AltEncrypter("cypherkey" + sDBUser);
            sDBPassword = cypher.decrypt(sDBPassword.substring(6));
        }       
        jtxtDbUser.setText(sDBUser);
        jtxtDbPassword.setText(sDBPassword);  
       
        dirty.setDirty(false);
View Full Code Here

       
        config.setProperty("db.driverlib", jtxtDbDriverLib.getText());
        config.setProperty("db.driver", jtxtDbDriver.getText());
        config.setProperty("db.URL", jtxtDbURL.getText());
        config.setProperty("db.user", jtxtDbUser.getText());
        AltEncrypter cypher = new AltEncrypter("cypherkey" + jtxtDbUser.getText());      
        config.setProperty("db.password", "crypt:" + cypher.encrypt(new String(jtxtDbPassword.getPassword())));

        dirty.setDirty(false);
    }
View Full Code Here

        }
        String sERPUser = config.getProperty("ws.user");
        String sERPPassword = config.getProperty("ws.password");
        if (sERPUser != null && sERPPassword != null && sERPPassword.startsWith("crypt:")) {
            // La clave esta encriptada.
            AltEncrypter cypher = new AltEncrypter("cypherkey" + sERPUser);
            sERPPassword = cypher.decrypt(sERPPassword.substring(6));
        }

        jtxtName.setText(sERPUser);
        jtxtPassword.setText(sERPPassword);   
        jtxtPaymentID.setText(config.getProperty("ws.payid"));
View Full Code Here

        config.setProperty("ws.deletert", Boolean.toString(jchkWSDeleteRT.isSelected()));

        config.setProperty("ws.type", comboValue( jComboBoxWS.getSelectedItem()));
       
        config.setProperty("ws.user", jtxtName.getText());
        AltEncrypter cypher = new AltEncrypter("cypherkey" + jtxtName.getText());            
        config.setProperty("ws.password", "crypt:" + cypher.encrypt(new String(jtxtPassword.getPassword())));

        String tmpPayID = jtxtPaymentID.getText();
        if (tmpPayID.equals(""))
            tmpPayID="1";
        else
View Full Code Here

       
        String sDBUser = config.getProperty("db.user");
        String sDBPassword = config.getProperty("db.password");       
        if (sDBUser != null && sDBPassword != null && sDBPassword.startsWith("crypt:")) {
            // La clave esta encriptada.
            AltEncrypter cypher = new AltEncrypter("cypherkey" + sDBUser);
            sDBPassword = cypher.decrypt(sDBPassword.substring(6));
        }       
        jtxtDbUser.setText(sDBUser);
        jtxtDbPassword.setText(sDBPassword);  
       
        dirty.setDirty(false);
View Full Code Here

       
        config.setProperty("db.driverlib", jtxtDbDriverLib.getText());
        config.setProperty("db.driver", comboValue(jComboBoxDbDriver.getSelectedItem()));
        config.setProperty("db.URL", jtxtDbURL.getText());
        config.setProperty("db.user", jtxtDbUser.getText());
        AltEncrypter cypher = new AltEncrypter("cypherkey" + jtxtDbUser.getText());      
        config.setProperty("db.password", "crypt:" + cypher.encrypt(new String(jtxtDbPassword.getPassword())));

        dirty.setDirty(false);
    }
View Full Code Here

    private boolean m_bTestMode;
   
    public PaymentGatewayCyberauthorize (AppProperties props) {
        m_sCommerceID = props.getProperty("payment.commerceid");

        AltEncrypter cypher = new AltEncrypter("cypherkey" + props.getProperty("payment.commerceid"));
        this.m_sCommercePassword = cypher.decrypt(props.getProperty("payment.commercepassword").substring(6));

        m_bTestMode = Boolean.valueOf(props.getProperty("payment.testmode")).booleanValue();
    }
View Full Code Here

        String sCommerceID = config.getProperty("payment.commerceid");
        String sCommercePass = config.getProperty("payment.commercepassword");
       
        if (sCommerceID != null && sCommercePass != null && sCommercePass.startsWith("crypt:")) {
            jtxtCommerceID.setText(config.getProperty("payment.commerceid"));
            AltEncrypter cypher = new AltEncrypter("cypherkey" + config.getProperty("payment.commerceid"));
            jtxtCommercePwd.setText(cypher.decrypt(config.getProperty("payment.commercepassword").substring(6)));
        }
    }
View Full Code Here

    }
   
    @Override
    public void saveProperties(AppConfig config) {
        config.setProperty("payment.commerceid", jtxtCommerceID.getText());
        AltEncrypter cypher = new AltEncrypter("cypherkey" + jtxtCommerceID.getText());      
        config.setProperty("payment.commercepassword", "crypt:" + cypher.encrypt(new String(jtxtCommercePwd.getPassword())));
    }
View Full Code Here

TOP

Related Classes of com.openbravo.pos.util.AltEncrypter

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.