Package com.openbravo.pos.util

Examples of com.openbravo.pos.util.AltEncrypter.decrypt()


        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


   
    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();
    }
   
    public PaymentGatewayCyberauthorize() {
View Full Code Here

        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)));
        }
    }
   
    @Override
    public void saveProperties(AppConfig config) {
View Full Code Here

            String sDBUser = props.getProperty("db.user");
            String sDBPassword = props.getProperty("db.password");       
            if (sDBUser != null && sDBPassword != null && sDBPassword.startsWith("crypt:")) {
                // the password is encrypted
                AltEncrypter cypher = new AltEncrypter("cypherkey" + sDBUser);
                sDBPassword = cypher.decrypt(sDBPassword.substring(6));
            }  

             return new Session(props.getProperty("db.URL"), sDBUser,sDBPassword);    

        } catch (InstantiationException e) {
View Full Code Here

            String sDBUser = props.getProperty("db.user");
            String sDBPassword = props.getProperty("db.password");       
            if (sDBUser != null && sDBPassword != null && sDBPassword.startsWith("crypt:")) {
                // the password is encrypted
                AltEncrypter cypher = new AltEncrypter("cypherkey" + sDBUser);
                sDBPassword = cypher.decrypt(sDBPassword.substring(6));
            }  

             return new Session(props.getProperty("db.URL"), sDBUser,sDBPassword);    

        } catch (InstantiationException e) {
View Full Code Here

                m_sERPUser = prop.getProperty("user");
                m_sERPPassword = prop.getProperty("password");       
                if (m_sERPUser != null && m_sERPPassword != null && m_sERPPassword.startsWith("crypt:")) {
                    // La clave esta encriptada.
                    AltEncrypter cypher = new AltEncrypter("key" + m_sERPUser);
                    m_sERPPassword = cypher.decrypt(m_sERPPassword.substring(6));
                }
                m_sERPPassword = getPasswordHash(m_sERPPassword);
                m_iERPId = prop.getProperty("id");
                m_iERPOrg = prop.getProperty("org");
                m_iERPPos = prop.getProperty("pos");
View Full Code Here

        String sCertificatePath = config.getProperty("payment.certificatePath");
       
        if (sCommerceID!=null && sCertificatePath!=null && sCertificatePass!=null && sCertificatePass.startsWith("crypt:")) {
            jtxtStoreName.setText(config.getProperty("payment.commerceid"));
            AltEncrypter cypher = new AltEncrypter("cypherkey");
            jtxtCertificatePass.setText(cypher.decrypt(config.getProperty("payment.certificatePassword").substring(6)));
            jtxtCertificatePath.setText(config.getProperty("payment.certificatePath"));
        }
    }
   
    @Override
View Full Code Here

        }


        AltEncrypter cypher = new AltEncrypter("cypherkey" + user);
        try {
            String password = cypher.decrypt(WSInfo.getWspassword().substring(6));
            wsLogin.setPassword(password);
        } catch (NullPointerException npe) {
            throw new BasicException(AppLocal.getIntString("message.propsnotdefined"));
        }
View Full Code Here

       
        if (sCommerceID!=null && sCommerceTerminal!=null && sCommerceSign!=null && sCommerceSHA!=null && sCommerceSign.startsWith("crypt:")) {
            jtxtCommerceCode.setText(config.getProperty("payment.commerceid"));
            AltEncrypter cypher = new AltEncrypter("cypherkey");
            jtxtCommerceTerminal.setText(comboValue(config.getProperty("payment.terminal")));
            jtxtCommerceSign.setText(cypher.decrypt(config.getProperty("payment.commercesign").substring(6)));
            jCheckBox1.setSelected(Boolean.valueOf(config.getProperty("payment.SHA")).booleanValue());
        }
    
    }
   
View Full Code Here

        String sCertificatePath = config.getProperty("payment.certificatePath");
       
        if (sCommerceID!=null && sCertificatePath!=null && sCertificatePass!=null && sCertificatePass.startsWith("crypt:")) {
            jtxtStoreName.setText(config.getProperty("payment.commerceid"));
            AltEncrypter cypher = new AltEncrypter("cypherkey");
            jtxtCertificatePass.setText(cypher.decrypt(config.getProperty("payment.certificatePassword").substring(6)));
            jtxtCertificatePath.setText(config.getProperty("payment.certificatePath"));
        }
    }
   
    @Override
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.