Package com.openbravo.pos.util

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


        }


        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


        String sERPUser = config.getProperty("erp.user");
        String sERPPassword = config.getProperty("erp.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);   
       
        dirty.setDirty(false);
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

       
        // Configuracion del pago
        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();
        m_sCurrency = (Locale.getDefault().getCountry().isEmpty())
            ? Currency.getInstance("EUR").getCurrencyCode()
            : Currency.getInstance(Locale.getDefault()).getCurrencyCode();
View Full Code Here

    private boolean m_bTestMode;
   
   
    public PaymentGatewayCaixa (AppProperties props) {
        AltEncrypter cypher = new AltEncrypter("cypherkey");
        this.sCommerceSign = cypher.decrypt(props.getProperty("payment.commercesign").substring(6));
       
        this.m_bTestMode = Boolean.valueOf(props.getProperty("payment.testmode")).booleanValue();
       
        //EUR, USD, GPB
        this.m_sCurrency = (Locale.getDefault().getCountry().isEmpty())
View Full Code Here

       
        this.m_bTestMode = Boolean.valueOf(props.getProperty("payment.testmode")).booleanValue();
        this.sConfigfile = props.getProperty("payment.commerceid");
        this.sClientCertPath = props.getProperty("payment.certificatePath");
        AltEncrypter cypher = new AltEncrypter("cypherkey");
        this.sPasswordCert = cypher.decrypt(props.getProperty("payment.certificatePassword").substring(6));
       
        HOST = (m_bTestMode)
                ? "staging.linkpt.net"
                : "secure.linkpt.net";
    }
View Full Code Here

    public PaymentGatewayPGNET(AppProperties props) {
        // Grab some configuration variables
        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();
       
        ENDPOINTADDRESS = (m_bTestMode)
                ? "https://www.paymentsgateway.net/cgi-bin/posttest.pl"
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

        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

        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

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.